poisson_distribution Class Reference

#include <poisson.h>

Inheritance diagram for poisson_distribution:

discrete_distribution

List of all members.

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)


Detailed Description

The Poisson distribution.

References:

  1. Eric W. Weisstein. "Poisson Distribution." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/PoissonDistribution.html

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN poisson_distribution::poisson_distribution ( double  m = 1.0  ) 

Create a distribution with the given mean.

Parameters:
m the mean.


Member Function Documentation

double poisson_distribution::cdf ( int  x  )  const [virtual]

The CDF for this distribution. This method returns P(X x).

Parameters:
x the value at which the CDF is evaluated.
Returns:
CDF for this distribution.

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.

Parameters:
p the cumulative probability.
Returns:
x
The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.
Parameters:
p the cumulative probability.
Returns:
x

Implements discrete_distribution.

double poisson_distribution::pmf ( int  x  )  const [virtual]

The PMF for this distribution. This method returns P(X = x).

Parameters:
x the value at which the PMF is evaluated.
Returns:
PMF for this distribution.

Implements discrete_distribution.

double poisson_distribution::mean (  )  const

Access the mean.

Returns:
the mean.

void poisson_distribution::mean ( double  m  ) 

Modify the mean.

Parameters:
m the new mean.


The documentation for this class was generated from the following files:
Generated on Wed Nov 21 22:22:16 2007 for numerics4c++ by  doxygen 1.5.3