#include <distributions.h>

Public Member Functions | |
| NormalDistribution (double mu, double sigma) | |
Initializes the distribution. | |
| double | pdf (double x) const |
| double | cdf (double x) const |
Returns the where . | |
| double | icdf (double p) const |
Private Attributes | |
| const double | mu |
| const double | sigma |
| NormalDistribution::NormalDistribution | ( | double | mu, | |
| double | sigma | |||
| ) |
Initializes the
distribution.
| mu | : The mean, . | |
| sigma | : The square root of the variance, . |
| double NormalDistribution::pdf | ( | double | x | ) | const |
| double NormalDistribution::cdf | ( | double | x | ) | const |
Returns the
where
.
| x | : the limit in . |
.
| double NormalDistribution::icdf | ( | double | p | ) | const |
const double NormalDistribution::mu [private] |
const double NormalDistribution::sigma [private] |
Source code hosted by