Herwig
7.2.1
|
the general cell class More...
#include <cell.h>
Public Member Functions | |
cell () | |
default constructor | |
cell (const std::vector< double > &ll, const std::vector< double > &ur, const adaption_info &ainfo) | |
construct from boundaries and adaption info | |
cell (const std::vector< double > &ll, const std::vector< double > &ur, const std::vector< bool > &sampled_variables, const adaption_info &ainfo) | |
construct from boundaries, flags for variables to be sampled, and adaption info | |
cell (const cell &x) | |
copy constructor | |
cell & | operator= (const cell &x) |
assignment | |
template<class Random , class Function > | |
std::pair< cell, cell > | split (std::pair< std::size_t, double > split_d, Random &rnd_gen, Function *f, const adaption_info &ainfo, const std::vector< bool > &sampled=std::vector< bool >()) |
split this cell, exploring the child not containing the current overestimate | |
std::size_t | split_dimension () const |
return the split dimension | |
double | split_point () const |
return the split value | |
double | integral () const |
return the integral | |
double & | integral () |
access the integral | |
void | integral (double v) |
set the integral | |
int & | missing_events () |
access the number of missing events | |
int | missing_events () const |
return the number of missing events | |
void | missing_events (int n) |
set the number of missing events | |
cell_info & | info () |
access the cell_info object | |
const cell_info & | info () const |
return the cell_info object | |
template<class OStream > | |
void | put (OStream &os) const |
put to ostream | |
template<class IStream > | |
void | get (IStream &is) |
get from istream | |
Private Attributes | |
std::size_t | split_dimension_ |
the dimension along this cell was split | |
double | split_point_ |
the value, where this cell was split | |
double | integral_ |
the integral of the absolute value of the overestimate over all the children cells | |
int | missing_events_ |
the number of missing events in this cell | |
std::unique_ptr< cell_info > | cell_info_ |
a pointer to the cell info object, if this is a leaf cell | |