File: SamplerCell.h
template <typename BinType>
CLASS
SamplerCell
typedef typename BinType::DVector DVector;
Public members:
inline SamplerCell(double newG);
inline SamplerCell(double newN, double newSumW, double newG, double newV);
inline ~SamplerCell();
inline double maxInt();
inline double gv() const;
inline double integral() const;
inline double eff() const;
inline void compensate(long newN0, long N1, double gt);
inline double g1(long N1) const;
inline double gMax() const;
inline bool reset(long N1);
inline double weight(double f);
inline SamplerCell<BinType> *
generate(DVector & lo, DVector & up, BinType & b);
inline bool lowEff(double eps0, long N1) const;
inline double newg(double epst, double eps0) const;
inline bool isSplit() const;
inline void splitme(double lo, double newDiv, double up, int newSplit);
inline int nBins() const;
inline int maxDepth() const;
inline SamplerCell * upp() const;
inline SamplerCell * low() const;
inline long N0() const;
inline long Nt() const;
Private members:
double N;
The number of times this cell has been picked
double sumW;
The sum of all weights (f/g) in this cell.
double g;
The estimated maximum of f in this cell.
double v;
The volume of this cell
double g0;
double sumW0;
long theN0;
long theNt;
If this cell is in a compensating mode, it started at the global
attempt theN0 at which time the g=g0 in this cell. The
compensation should end after the global attempt theNt.
char split;
If non-negative, the dimension in which this cell has been split.
double div;
The value at which this cell was split.
SamplerCell * upper;
SamplerCell * lower;
The upper and lower cell into which this is split.
DEFINED MACROS
INCLUDED FILES