TFoamSampler class class implementing the ROOT::Math::DistSampler interface using FOAM for sampling arbitrary distributions.
virtual | ~TFoamSampler() |
ROOT::Math::DistSampler | ROOT::Math::DistSampler::DistSampler() |
ROOT::Math::DistSampler | ROOT::Math::DistSampler::DistSampler(const ROOT::Math::DistSampler&) |
virtual bool | ROOT::Math::DistSampler::Generate(unsigned int nevt, ROOT::Fit::UnBinData& data) |
virtual bool | ROOT::Math::DistSampler::Generate(unsigned int nevt, const int* nbins, ROOT::Fit::BinData& data, bool extend = true) |
bool | ROOT::Math::DistSampler::Generate(unsigned int nevt, int nbins, double xmin, double xmax, ROOT::Fit::BinData& data, bool extend = true) |
virtual TRandom* | GetRandom() |
virtual bool | Init(const char* = "") |
virtual bool | Init(const ROOT::Math::DistSamplerOptions& opt) |
unsigned int | ROOT::Math::DistSampler::NDim() const |
TFoamSampler& | operator=(const TFoamSampler&) |
const ROOT::Math::IMultiGenFunction& | ROOT::Math::DistSampler::ParentPdf() const |
virtual bool | Sample(double* x) |
virtual double | ROOT::Math::DistSampler::Sample1D() |
virtual bool | SampleBin(double prob, double& value, double* error = 0) |
virtual bool | ROOT::Math::DistSampler::SampleBins(unsigned int n, const double* prob, double* values, double* errors = 0) |
virtual void | ROOT::Math::DistSampler::SetArea(double) |
virtual void | SetFunction(const ROOT::Math::IGenFunction& func) |
void | SetFunction(TF1* pdf) |
void | ROOT::Math::DistSampler::SetFunction<const ROOT::Math::IBaseFunctionOneDim>(ROOT::Math::const IBaseFunctionOneDim& func, unsigned int dim) |
virtual void | ROOT::Math::DistSampler::SetMode(double) |
virtual void | SetRandom(TRandom* r) |
void | ROOT::Math::DistSampler::SetRange(const ROOT::Fit::DataRange& range) |
void | ROOT::Math::DistSampler::SetRange(const double* xmin, const double* xmax) |
void | ROOT::Math::DistSampler::SetRange(double xmin, double xmax, int icoord = 0) |
virtual void | SetSeed(unsigned int seed) |
TFoamSampler() | |
TFoamSampler(const TFoamSampler&) |
virtual void | ROOT::Math::DistSampler::DoSetFunction(const ROOT::Math::IMultiGenFunction& func, bool copy) |
bool | ROOT::Math::DistSampler::IsInitialized() |
const ROOT::Fit::DataRange& | ROOT::Math::DistSampler::PdfRange() const |
TFoam* | fFoam | foam engine class |
TFoamIntegrand* | fFoamDist | foam distribution interface |
const ROOT::Math::IGenFunction* | fFunc1D | 1D function pointer |
fOneDim(false) fDiscrete(false), fHasMode(false), fHasArea(false), fMode(0), fArea(0),
{}
initialize foam classes using the given algorithm
set random generator seed (must be called before Init to have effect)
sample a bin according to Poisson statistics
set the parent function distribution to use for random sampling (one dim case)