normal_distribution Class Reference

#include <normal.h>

Inheritance diagram for normal_distribution:

continuous_distribution

List of all members.

Public Member Functions

 normal_distribution (double mean=0.0, double std=1.0)
double cdf (double x) const
double inverse_cdf (double p) const
double mean () const
void mean (double mean)
double standard_deviation () const
void standard_deviation (double std)


Detailed Description

The Normal distribution (1).

References:

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

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN normal_distribution::normal_distribution ( double  m = 0.0,
double  s = 1.0 
)

Create a distribution with the given mean and standard deviation.

Parameters:
mean the mean.
std the standard deviation.


Member Function Documentation

double normal_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 normal_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 normal_distribution::mean (  )  const

Access the mean.

Returns:
the mean.

void normal_distribution::mean ( double  m  ) 

Modify the mean.

Parameters:
mean the new mean value.

double normal_distribution::standard_deviation (  )  const

Access the standard deviation.

Returns:
the standard deviation.

void normal_distribution::standard_deviation ( double  s  ) 

Modify the standard deviation.

Parameters:
std The new standard deviation value.


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