log_normal_distribution Class Reference

#include <lognormal.h>

Inheritance diagram for log_normal_distribution:

continuous_distribution

List of all members.

Public Member Functions

 log_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 Log Normal distribution.

References:

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

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN log_normal_distribution::log_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 log_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 log_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 log_normal_distribution::mean (  )  const

Access the mean.

Returns:
the mean.

void log_normal_distribution::mean ( double  m  ) 

Modify the mean.

Parameters:
mean the new mean value.

double log_normal_distribution::standard_deviation (  )  const

Access the standard deviation.

Returns:
the standard deviation.

void log_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:15 2007 for numerics4c++ by  doxygen 1.5.3