#include <poisson.h>
Public Member Functions | |
poisson_distribution (double m=1.0) | |
double | cdf (int x) const |
int | inverse_cdf (double p) const |
double | pmf (int x) const |
double | mean () const |
void | mean (double m) |
References:
NUM_NAMESPACE_BEGIN poisson_distribution::poisson_distribution | ( | double | m = 1.0 |
) |
Create a distribution with the given mean.
m | the mean. |
double poisson_distribution::cdf | ( | int | x | ) | const [virtual] |
The CDF for this distribution. This method returns P(X x).
x | the value at which the CDF is evaluated. |
Implements discrete_distribution.
int poisson_distribution::inverse_cdf | ( | double | p | ) | const [virtual] |
The inverse CDF for this distribution. This method returns the largest x such that, P(X x) p.
p | the cumulative probability. |
p | the cumulative probability. |
Implements discrete_distribution.
double poisson_distribution::pmf | ( | int | x | ) | const [virtual] |
The PMF for this distribution. This method returns P(X = x).
x | the value at which the PMF is evaluated. |
Implements discrete_distribution.
double poisson_distribution::mean | ( | ) | const |
Access the mean.
void poisson_distribution::mean | ( | double | m | ) |
Modify the mean.
m | the new mean. |