12 #ifndef ROOT_TUnuranSampler 13 #define ROOT_TUnuranSampler 61 using DistSampler::SetFunction;
66 SetFunction<const ROOT::Math::IGenFunction>(func, 1);
70 void SetFunction(TF1 * pdf);
77 bool Init(
const char * algo =
"");
97 void SetSeed(
unsigned int seed);
138 bool Sample(
double *
x);
151 bool SampleBin(
double prob,
double & value,
double *error = 0);
158 bool DoInit1D(
const char * algo);
160 bool DoInitDiscrete1D(
const char * algo);
162 bool DoInitND(
const char * algo);
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Namespace for new ROOT classes and functions.
void SetArea(double area)
set the normalization area of distribution implemented by derived classes if needed ...
void SetPrintLevel(int level)
Set the print level (if level=-1 use default)
void SetFunction(const ROOT::Math::IGenFunction &func)
set the parent function distribution to use for random sampling (one dim case)
This is the base class for the ROOT Random number generators.
DistSampler options class.
* x
Deprecated and error prone model selection interface.
Interface class for generic sampling of a distribution, i.e.
Namespace for new Math classes and functions.
TUnuranSampler class class implementing the ROOT::Math::DistSampler interface using the UNU...
const ROOT::Math::IGenFunction * fFunc1D
void SetMode(double mode)
set the mode of the distribution (could be useful to some methods) implemented by derived classes if ...