ExponentialDistribution Class Reference

Base class of probability density functions. More...

#include <ExponentialDistribution.h>

Inheritance diagram for ExponentialDistribution:
Probability

Public Member Functions

double density (double x)
 Get the value of the probability density at x.
 
double cumulative_distribution (double x)
 Get the value of the distribution function at x. More...
 
double cumulative_mean (double x)
 Get the first moment of the distribution averaged from 0 to x. More...
 
double cumulative_moment2 (double x)
 Get the second moment of the distribution averaged from 0 to x. More...
 
- Public Member Functions inherited from Probability
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()

double ExponentialDistribution::cumulative_distribution ( double  x)
virtual

Get the value of the distribution function at x.

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

Implements Probability.

Referenced by cumulative_mean(), and cumulative_moment2().

◆ cumulative_mean()

double ExponentialDistribution::cumulative_mean ( double  x)
virtual

Get the first moment of the distribution averaged from 0 to x.

i.e. $ \int_{-inf}^x t P(t) dt \over D(x) $

Implements Probability.

References cumulative_distribution(), and density().

◆ cumulative_moment2()

double ExponentialDistribution::cumulative_moment2 ( double  x)
virtual

Get the second moment of the distribution averaged from 0 to x.

i.e. $ \int_{-inf}^x t^2 P(t) dt \over D(x) $

Implements Probability.

References cumulative_distribution(), and density().


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

Generated using doxygen 1.8.17