Public Member Functions | Public Attributes | List of all members
o2scl::prob_dens_mdim_amr< vec_t, mat_t >::hypercube Class Reference

A hypercube class for o2scl::prob_dens_mdim_amr. More...

#include <prob_dens_mdim_amr.h>

Detailed Description

template<class vec_t = std::vector<double>, class mat_t = matrix_view_table<vec_t>>
class o2scl::prob_dens_mdim_amr< vec_t, mat_t >::hypercube

Definition at line 74 of file prob_dens_mdim_amr.h.

Public Member Functions

 hypercube ()
 Create an empty hypercube.
 
template<class vec2_t >
void set (vec2_t &l, vec2_t &h, size_t in, double fvol, double wgt)
 Set the hypercube information.
 
 hypercube (const hypercube &h)
 Copy constructor.
 
hypercubeoperator= (const hypercube &h)
 Copy constructor through operator=()
 
template<class vec2_t >
bool is_inside (const vec2_t &v) const
 Test if point v is inside this hypercube.
 

Public Attributes

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.
 

The documentation for this class was generated from the following file:

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).