12 #ifndef ROOT_TFoamSampler 13 #define ROOT_TFoamSampler 60 using DistSampler::SetFunction;
65 SetFunction<const ROOT::Math::IGenFunction>(func, 1);
69 void SetFunction(TF1 * pdf);
75 bool Init(
const char * =
"");
93 void SetSeed(
unsigned int seed);
106 bool Sample(
double *
x);
114 bool SampleBin(
double prob,
double & value,
double *error = 0);
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Namespace for new ROOT classes and functions.
void SetFunction(const ROOT::Math::IGenFunction &func)
set the parent function distribution to use for random sampling (one dim case)
Class describing the unbinned data sets (just x coordinates values) of any dimensions.
TFoamIntegrand * fFoamDist
This is the base class for the ROOT Random number generators.
DistSampler options class.
Class describing the binned data sets : vectors of x coordinates, y values and optionally error on y ...
* x
Deprecated and error prone model selection interface.
Interface class for generic sampling of a distribution, i.e.
class describing the range in the coordinates it supports multiple range in a coordinate.
const ROOT::Math::IGenFunction * fFunc1D
Namespace for new Math classes and functions.
TFoamSampler class class implementing the ROOT::Math::DistSampler interface using FOAM for sampling a...