Base class of probability density functions.
More...
#include <NormalDistribution.h>
|
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.
|
|
double | cumulative_mean (double x) |
| Get the first moment of the distribution averaged from 0 to x.
|
|
double | cumulative_moment2 (double x) |
| Get the second moment of the distribution averaged from 0 to x.
|
|
double | cumulative_mean_raw (double x) |
| Get the raw first moment of the distribution averaged from 0 to x. More...
|
|
double | cumulative_moment3_raw (double x) |
| Get the raw third moment of the distribution averaged from 0 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.
|
|
Base class of probability density functions.
◆ cumulative_mean_raw()
double NormalDistribution::cumulative_mean_raw |
( |
double |
x | ) |
|
Get the raw first moment of the distribution averaged from 0 to x.
"Raw" cumulative moments defined as

can be computed for the normal distribution to be:

where
is the (lower) incomplete gamma function. For odd m, this becomes really easy since a is then an integer. This is used in the following functions.
I called these raw rather than unnormalized since they are computed using a normalized PDF (sigma=1.0), but are not divided by the corresponding cumulative distribution.
The documentation for this class was generated from the following files: