exponential_distribution Class Reference

#include <exponential.h>

Inheritance diagram for exponential_distribution:

continuous_distribution

List of all members.

Public Member Functions

 exponential_distribution (double mean=1.0)
double cdf (double x) const
double inverse_cdf (double p) const
double mean () const
void mean (double mean)


Detailed Description

The Exponential distribution (1).

References:

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

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN exponential_distribution::exponential_distribution ( double  m = 1.0  ) 

Create a distribution with the given mean.

Parameters:
mean the mean.
Create a distribution with the given mean.
Parameters:
m the mean.


Member Function Documentation

double exponential_distribution::cdf ( double  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 continuous_distribution.

double exponential_distribution::inverse_cdf ( double  p  )  const [virtual]

The inverse CDF for this distribution. This method returns x such that, P(X < x) = p.

Parameters:
p the cumulative probability.
Returns:
x

Implements continuous_distribution.

double exponential_distribution::mean (  )  const

Access the mean.

Returns:
the mean.

void exponential_distribution::mean ( double  m  ) 

Modify the mean.

Parameters:
mean the new mean value.
Modify the mean.
Parameters:
m the new mean value.


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