14#ifndef ROOT_Math_TUnuranContDist
15#define ROOT_Math_TUnuranContDist
180 double Pdf (
double x)
const;
185 double DPdf(
double x)
const;
190 double Cdf(
double x)
const;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char mode
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
TUnuranBaseDist, base class for Unuran distribution classes such as TUnuranContDist (for one-dimensio...
TUnuranContDist class describing one dimensional continuous distribution.
const ROOT::Math::IGenFunction * fDPdf
pointer to the derivative of the pdf
double fXmin
lower value of the domain
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
pointer to the pdf
bool fHasArea
flag to control if distribution has a pre-computed area below the pdf
double fMode
mode of the distribution
double fArea
area below pdf
bool fHasMode
flag to control if distribution has a pre-computed mode
TUnuranContDist * Clone() const override
Clone (required by base class)
const ROOT::Math::IGenFunction * fCdf
pointer to the cdf (cumulative dist.)
void SetMode(double mode)
set the distribution mode (x position of its maximum)
bool fIsLogPdf
flag to control if function pointer represent log of pdf
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.
bool IsLogPdf() const
flag to control if given function represent the log of a pdf
double fXmax
upper value of the domain
bool fHasDomain
flag to control if distribution has a defined domain (otherwise is [-inf,+inf]
~TUnuranContDist() override
Destructor.
void SetPdfArea(double area)
set the area below the pdf
bool fOwnFunc
flag to indicate if class manages the function pointers
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