Class prob_dens_mdim_amr::hypercube (o2scl)

O2scl : Class List

class o2scl::prob_dens_mdim_amr::hypercube

A hypercube class for o2scl::prob_dens_mdim_amr.

Public Functions

inline hypercube()

Create an empty hypercube.

template<class vec2_t>
inline void set(vec2_t &l, vec2_t &h, size_t in, double fvol, double wgt)

Set the hypercube information.

inline hypercube(const hypercube &h)

Copy constructor.

inline hypercube &operator=(const hypercube &h)

Copy constructor through operator=()

template<class vec2_t>
inline bool is_inside(const vec2_t &v) const

Test if point v is inside this hypercube.

Public Members

size_t n_dim

The number of dimensions.

std::vector<double> low

The corner of smallest values.

std::vector<double> high

The corner of largest values.

std::vector<size_t> inside

The list of indices inside.

double frac_vol

The fractional volume enclosed.

double weight

The weight.