#include <Distrbase.hh>
Inheritance diagram for RazorBack::Distrbase_:
Public Methods | |
virtual | ~Distrbase_ () |
virtual double | pdf (double X) const=0 |
pdf(X): return the PDF value at X. | |
virtual double | cdf (double X) const=0 |
cdf(X): return the CDF value at X. | |
virtual double | inv_cdf (double Y) const=0 |
inv_cdf(Y): return the inverse CDF at Y. | |
virtual double | mean () const=0 |
Returns the mean of the distribution. | |
virtual double | var () const=0 |
Returns the variance of the distribution. | |
virtual double | skew () const=0 |
Returns the skewness of the distribution. | |
virtual double | kurt () const=0 |
Returns the kurtosis of the distribution. | |
virtual double | entropy () const=0 |
Returns the entropy of the distribution. | |
virtual double | random () const=0 |
random(): generate a random number from the distribution. |
Classes derived from this base shall be able to return the probability density function (PDF) and the cumulative distribution function (CDF) at a given point, calculate the probability of a given interval, calculate the mean, variance, skewness, kurtosis,entropy etc. of the distribution, generate random numbers from the distribution.
Definition at line 30 of file Distrbase.hh.
|
Definition at line 37 of file Distrbase.hh. |
|
pdf(X): return the PDF value at X.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
cdf(X): return the CDF value at X.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
inv_cdf(Y): return the inverse CDF at Y.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
Returns the mean of the distribution.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
Returns the variance of the distribution.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
Returns the skewness of the distribution.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
Returns the kurtosis of the distribution.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
Returns the entropy of the distribution.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |
|
random(): generate a random number from the distribution.
Reimplemented in RazorBack::Distrapprox_, RazorBack::Uniform_, and RazorBack::Gaussian_. |