File: SamplerBin.h
template <typename BinType>
template <typename CellType>
STRUCT
SamplerLess
Public members:
inline bool operator()(const CellType *, const CellType *) const;
template <typename SamplerType>
CLASS
SamplerBin
Public members:
typedef SamplerCell<SamplerBin> CellType;
typedef typename SamplerType::DVector DVector;
typedef typename SamplerType::FncType FncType;
typedef std::multiset<CellType *, SamplerLess<CellType> > CellSet;
inline SamplerBin(int d, const FncType & newF, SamplerType & smpl);
inline ~SamplerBin();
inline DVector generate();
inline void fixOverflow(double f, const DVector & low,
const DVector & x, const DVector & upp);
inline double lastWeight() const;
inline double integral() const;
inline double maxInt() const;
inline void resetLast();
inline void resetInt() const;
inline bool needUpdate();
inline void forceUpdate();
inline SamplerType & sampler() const;
inline double rnd() const;
inline double rnd(double xl, double xu) const;
inline bool rndBool(double x) const;
inline bool rndBool(double x, double y) const;
inline bool rndInt(long x) const;
inline double eps() const;
inline double eps0() const;
inline long N() const;
inline long nLeft() const;
inline const FncType & f() const;
inline double f(const DVector & x) const;
inline int nBins() const;
inline int maxDepth() const;
Private members:
int D;
const FncType & theFnc;
SamplerType & theSampler;
double lastF;
CellType * primary;
CellType * last;
double theLastWeight;
CellSet watchCells;
mutable double theMaxInt;
CLASS DECLARATIONS
DEFINED MACROS
INCLUDED FILES
set
SamplerCell.h
SamplerBin.icc