12 #ifndef ROOT_TFoamSampler 13 #define ROOT_TFoamSampler 16 #ifndef ROOT_Math_DistSampler 62 using DistSampler::SetFunction;
67 SetFunction<const ROOT::Math::IGenFunction>(
func, 1);
71 void SetFunction(
TF1 * pdf);
77 bool Init(
const char * =
"");
95 void SetSeed(
unsigned int seed);
108 bool Sample(
double *
x);
116 bool SampleBin(
double prob,
double & value,
double *error = 0);
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
void SetFunction(const ROOT::Math::IGenFunction &func)
set the parent function distribution to use for random sampling (one dim case)
TFoamIntegrand * fFoamDist
This is the base class for the ROOT Random number generators.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
DistSampler options class.
Interface class for generic sampling of a distribution, i.e.
const ROOT::Math::IGenFunction * fFunc1D
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
double func(double *x, double *p)
Namespace for new Math classes and functions.
TFoamSampler class class implementing the ROOT::Math::DistSampler interface using FOAM for sampling a...