14#ifndef ROOT_Math_TUnuranContDist
15#define ROOT_Math_TUnuranContDist
172 double Pdf (
double x)
const;
177 double DPdf(
double x)
const;
182 double Cdf(
double x)
const;
#define ClassDef(name, id)
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
TUnuranBaseDist, base class for Unuran distribution classees such as TUnuranContDist (for one-dimensi...
TUnuranContDist class describing one dimensional continuous distribution.
const ROOT::Math::IGenFunction * fDPdf
double Mode() const
return the mode (x location of maximum of the pdf)
bool HasPdfArea() const
check if distribution has a pre-computed area below the Pdf
double DPdf(double x) const
evaluate the derivative of the pdf.
const ROOT::Math::IGenFunction * fPdf
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 Pdf(double x) const
evaluate the Probability Density function.
virtual TUnuranContDist * Clone() const
Clone (required by base class)
const ROOT::Math::IGenFunction * fCdf
void SetMode(double mode)
set the distribution mode (x position of its maximum)
double Cdf(double x) const
evaluate the integral (cdf) on the domain.
double PdfArea() const
return area below the pdf
bool GetDomain(double &xmin, double &xmax) const
check if distribution has a defined domain and return in case its domain
void SetCdf(TF1 *cdf)
set cdf distribution.
void SetDomain(double xmin, double xmax)
Set the distribution domain.
virtual ~TUnuranContDist()
Destructor.
bool IsLogPdf() const
flag to control if given function represent the log of a pdf
void SetPdfArea(double area)
set the area below the pdf
bool HasMode() const
check if distribution has a pre-computed mode
TUnuranContDist & operator=(const TUnuranContDist &rhs)
Assignment operator.
bool HasCdf() const
check if a cdf function is provided for the distribution