Probability Class Referenceabstract

Base class of probability density functions. More...

#include <Probability.h>

Inheritance diagram for Probability:
ExponentialDistribution NormalDistribution

Public Member Functions

virtual double density (double x)=0
 Get the value of the probability density at x.
 
virtual double cumulative_distribution (double x)=0
 Get the value of the distribution function at x. More...
 
virtual double cumulative_mean (double x)=0
 Get the first moment of the distribution averaged from -inf to x.
 
virtual double cumulative_moment2 (double x)=0
 Get the second moment of the distribution averaged from -inf to x.
 
virtual double mean (double x1, double x2)
 Get the first moment of the distribution averaged from x1 to x2.
 
virtual double moment2 (double x1, double x2)
 Get the second moment of the distribution averaged from x1 to x2.
 

Detailed Description

Base class of probability density functions.

Member Function Documentation

◆ cumulative_distribution()

virtual double Probability::cumulative_distribution ( double  x)
pure virtual

Get the value of the distribution function at x.

The distribution, $ D(x) = \int_{-\inf}^x P(t) dt $

Implemented in ExponentialDistribution, and NormalDistribution.

Referenced by mean(), and moment2().


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

Generated using doxygen 1.8.17