beta_distribution Class Reference

#include <beta.h>

Inheritance diagram for beta_distribution:

continuous_distribution

List of all members.

Public Member Functions

 beta_distribution (double alpha=1.0, double beta=1.0)
double cdf (double x) const
double inverse_cdf (double p) const
double alpha () const
void alpha (double a)
double beta () const
void beta (double b)


Detailed Description

The Beta distribution (1).

References:

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

Constructor & Destructor Documentation

NUM_NAMESPACE_BEGIN beta_distribution::beta_distribution ( double  a = 1.0,
double  b = 1.0 
)

Create a distribution with the given alpha and beta values.

Parameters:
alpha the alpha parameter.
beta the beta parameter.
Create a distribution with the given alpha and beta values.
Parameters:
a the alpha parameter.
b the beta parameter.


Member Function Documentation

double beta_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 beta_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 beta_distribution::alpha (  )  const

Access the alpha parameter.

Returns:
the alpha parameter.

void beta_distribution::alpha ( double  a  ) 

Modify the alpha parameter.

Parameters:
a the new alpha value.

double beta_distribution::beta (  )  const

Access the beta parameter.

Returns:
the beta parameter.

void beta_distribution::beta ( double  b  ) 

Modify the beta parameter.

Parameters:
b the new beta 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