Herwig 7.3.0
|
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 | |
|
inline |
access the cell_info object
Definition at line 261 of file cell.h.
References cell_info_.
Referenced by exsample::parametric_missing_accessor::get().
|
inline |
|
inline |
|
inline |
return the integral
Definition at line 243 of file cell.h.
References integral_.
Referenced by exsample::integral_accessor::get(), and exsample::integral_accessor::set().
|
inline |
|
inline |
access the number of missing events
Definition at line 252 of file cell.h.
References missing_events_.
Referenced by exsample::parametric_missing_accessor::get(), exsample::missing_accessor::get(), exsample::missing_accessor::set(), and exsample::parametric_missing_accessor::set().
|
inline |
return the number of missing events
Definition at line 255 of file cell.h.
References missing_events_.
|
inline |
|
inline |
|
inline |
|
private |
|
private |
the integral of the absolute value of the overestimate over all the children cells
Definition at line 288 of file cell.h.
Referenced by integral().
|
private |
the number of missing events in this cell
Definition at line 291 of file cell.h.
Referenced by missing_events().
|
private |
the dimension along this cell was split
Definition at line 280 of file cell.h.
Referenced by split_dimension().
|
private |
the value, where this cell was split
Definition at line 283 of file cell.h.
Referenced by split_point().