julian::ProbabilityDistribution Class Referenceabstract

Class implements an interface of random number distribution. More...

#include <probabilityDistribution.hpp>

Inheritance diagram for julian::ProbabilityDistribution:
julian::ScaleLocationDistribution julian::NormalDistribution julian::UniformDistribution

Public Member Functions

virtual double CDF (double)=0
 calculates value of Cumulative Distribution Function More...
 
virtual double PDF (double)=0
 calculates value of Probability Distribution Function More...
 
virtual double invCDF (double)=0
 calculates quantile More...
 
virtual void estimate (std::vector< double >)=0
 estimates parameters of random variables More...
 
virtual double mean ()=0
 returns mean More...
 
virtual double variance ()=0
 returns variance More...
 
virtual ProbabilityDistributionclone () const
 virtual copy constructor More...
 
virtual ~ProbabilityDistribution ()
 destructor More...
 

Detailed Description

Class implements an interface of random number distribution.

To define probability distribution we will use:

1) Cumulative distribution function of random variable X

\[CDF_{X}(t) = Pr(X < t)\]

2) Probability distribution function of random variable X

\[PDF_{X}(t) = \frac{d CDF_{X}(t)}{dt}\]

Constructor & Destructor Documentation

virtual julian::ProbabilityDistribution::~ProbabilityDistribution ( )
inlinevirtual

destructor

Member Function Documentation

virtual double julian::ProbabilityDistribution::CDF ( double  )
pure virtual

calculates value of Cumulative Distribution Function

Implemented in julian::UniformDistribution, and julian::NormalDistribution.

virtual ProbabilityDistribution* julian::ProbabilityDistribution::clone ( ) const
virtual
virtual void julian::ProbabilityDistribution::estimate ( std::vector< double >  )
pure virtual

estimates parameters of random variables

Implemented in julian::UniformDistribution, and julian::NormalDistribution.

virtual double julian::ProbabilityDistribution::invCDF ( double  )
pure virtual

calculates quantile

Implemented in julian::UniformDistribution, and julian::NormalDistribution.

virtual double julian::ProbabilityDistribution::mean ( )
pure virtual

returns mean

Implemented in julian::UniformDistribution, and julian::NormalDistribution.

virtual double julian::ProbabilityDistribution::PDF ( double  )
pure virtual

calculates value of Probability Distribution Function

Implemented in julian::UniformDistribution, and julian::NormalDistribution.

virtual double julian::ProbabilityDistribution::variance ( )
pure virtual

returns variance

Implemented in julian::UniformDistribution, and julian::NormalDistribution.


The documentation for this class was generated from the following file: