31#ifndef ROOT_Math_VavilovFast
32#define ROOT_Math_VavilovFast
144 double Pdf (
double x)
const;
154 double Pdf (
double x,
double kappa,
double beta2);
161 double Cdf (
double x)
const;
171 double Cdf (
double x,
double kappa,
double beta2);
178 double Cdf_c (
double x)
const;
188 double Cdf_c (
double x,
double kappa,
double beta2);
205 double Quantile (
double z,
double kappa,
double beta2);
222 double Quantile_c (
double z,
double kappa,
double beta2);
Class describing a Vavilov distribution.
double Cdf(double x) const
Evaluate the Vavilov cumulative probability density function.
static VavilovFast * fgInstance
virtual double GetKappa() const
Return the current value of .
virtual double GetLambdaMax() const
Return the maximum value of for which is nonzero in the current approximation.
virtual ~VavilovFast()
Destructor.
double Cdf_c(double x) const
Evaluate the Vavilov complementary cumulative probability density function.
virtual double GetBeta2() const
Return the current value of .
double Quantile_c(double z) const
Evaluate the inverse of the complementary Vavilov cumulative probability density function.
double Pdf(double x) const
Evaluate the Vavilov probability density function.
double Quantile(double z) const
Evaluate the inverse of the Vavilov cumulative probability density function.
VavilovFast(double kappa=1, double beta2=1)
Initialize an object to calculate the Vavilov distribution.
virtual void SetKappaBeta2(double kappa, double beta2)
Change and and recalculate coefficients if necessary.
virtual double GetLambdaMin() const
Return the minimum value of for which is nonzero in the current approximation.
static VavilovFast * GetInstance()
Returns a static instance of class VavilovFast.
Base class describing a Vavilov distribution.
double vavilov_fast_pdf(double x, double kappa, double beta2)
The Vavilov probability density function.
double vavilov_fast_cdf(double x, double kappa, double beta2)
The Vavilov cumulative probability density function.
double vavilov_fast_cdf_c(double x, double kappa, double beta2)
The Vavilov complementary cumulative probability density function.
double vavilov_fast_quantile(double z, double kappa, double beta2)
The inverse of the Vavilov cumulative probability density function.
double vavilov_fast_quantile_c(double z, double kappa, double beta2)
The inverse of the complementary Vavilov cumulative probability density function.
Namespace for new Math classes and functions.