43 if (fDPdf) fDPdf->
Clone();
49 fPdf( (pdf) ? new
ROOT::
Math::WrappedTF1 ( *pdf) : 0 ),
50 fDPdf( (deriv) ? new
ROOT::
Math::WrappedTF1 ( *deriv) : 0 ),
80 if (
this == &rhs)
return *
this;
153 static double gEps = 0.001;
154 double h = ( std::abs(x) > 0 ) ? gEps * std::abs(x) : gEps;
TUnuranBaseDist, base class for Unuran distribution classees such as TUnuranContDist (for one-dimensi...
const ROOT::Math::IGenFunction * fDPdf
double Pdf(double x) const
evaluate the Probability Density function.
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...
virtual ~TUnuranContDist()
Destructor.
Class to Wrap a ROOT Function class (like TF1) in a IParamFunction interface of one dimensions to be ...
double Cdf(double x) const
evaluate the integral (cdf) on the domain.
void SetCdf(TF1 *cdf)
set cdf distribution.
TUnuranContDist(TF1 *pdf=0, TF1 *deriv=0, bool isLogPdf=false)
Constructor from a TF1 objects specifying the pdf and optionally from another function representing t...
double cdf(double *x, double *p)
double DPdf(double x) const
evaluate the derivative of the pdf.
double Derivative1(double x)
Returns the first derivative of the function at point x, computed by Richardson's extrapolation metho...
double Integral(Function &f, double a, double b)
evaluate the Integral of a function f over the defined interval (a,b)
const ROOT::Math::IGenFunction * fCdf
IBaseFunctionOneDim IGenFunction
const ROOT::Math::IGenFunction * fPdf
User Class for performing numerical integration of a function in one dimension.
TUnuranContDist & operator=(const TUnuranContDist &rhs)
Assignment operator.
Namespace for new Math classes and functions.
TUnuranContDist class describing one dimensional continuous distribution.
virtual IBaseFunctionOneDim * Clone() const =0
Clone a function.
virtual TUnuranContDist * Clone() const
Clone (required by base class)
User class for calculating the derivatives of a function.