Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

RazorBack::Uniform_ Class Reference

Uniform_: implements the uniform distribution in a range. More...

#include <Distrfunc.hh>

Inheritance diagram for RazorBack::Uniform_:

Inheritance graph
[legend]
Collaboration diagram for RazorBack::Uniform_:

Collaboration graph
[legend]
List of all members.

Public Methods

 Uniform_ (double Low=0.0, double Up=1.0)
 init to range Low...Up.

double low () const
 Returns the lower limit of the range.

double low (double L)
 Sets the lower limit to L, returns old lower limit.

double up () const
 Returns the upper limit of the range.

double up (double U)
 Sets the upper limit to U, returns old upper limit.

virtual double pdf (double X) const
 Calculates the PDF at X.

virtual double cdf (double X) const
 Calculates the CDF at X.

virtual double inv_cdf (double Y) const
 Calculates the inverse CDF, returns X where CDF(X)=Y.

virtual double mean () const
 Returns the mean.

virtual double var () const
 Returns the variance.

virtual double skew () const
 Returns the skewness of the distribution.

virtual double kurt () const
 Returns the kurtosis of the distribution.

virtual double entropy () const
 Returns the entropy.

virtual double random () const
 Returns a random number from this uniform distribution.


Private Attributes

Randomuni_ Rand
 uniform random number generator.

double Range
 upper-lower limit.


Detailed Description

Uniform_: implements the uniform distribution in a range.

Definition at line 76 of file Distrfunc.hh.


Constructor & Destructor Documentation

RazorBack::Uniform_::Uniform_ ( double Low = 0.0,
double Up = 1.0 )
 

init to range Low...Up.


Member Function Documentation

double RazorBack::Uniform_::low ( ) const [inline]
 

Returns the lower limit of the range.

Definition at line 89 of file Distrfunc.hh.

Referenced by cdf(), inv_cdf(), mean(), and random().

double RazorBack::Uniform_::low ( double L ) [inline]
 

Sets the lower limit to L, returns old lower limit.

Definition at line 92 of file Distrfunc.hh.

double RazorBack::Uniform_::up ( ) const [inline]
 

Returns the upper limit of the range.

Definition at line 98 of file Distrfunc.hh.

Referenced by cdf(), mean(), pdf(), and random().

double RazorBack::Uniform_::up ( double U ) [inline]
 

Sets the upper limit to U, returns old upper limit.

Definition at line 101 of file Distrfunc.hh.

double RazorBack::Uniform_::pdf ( double X ) const [inline, virtual]
 

Calculates the PDF at X.

Reimplemented from RazorBack::Distrbase_.

Definition at line 107 of file Distrfunc.hh.

double RazorBack::Uniform_::cdf ( double X ) const [inline, virtual]
 

Calculates the CDF at X.

Reimplemented from RazorBack::Distrbase_.

Definition at line 114 of file Distrfunc.hh.

double RazorBack::Uniform_::inv_cdf ( double Y ) const [inline, virtual]
 

Calculates the inverse CDF, returns X where CDF(X)=Y.

Reimplemented from RazorBack::Distrbase_.

Definition at line 122 of file Distrfunc.hh.

double RazorBack::Uniform_::mean ( ) const [inline, virtual]
 

Returns the mean.

Reimplemented from RazorBack::Distrbase_.

Definition at line 130 of file Distrfunc.hh.

double RazorBack::Uniform_::var ( ) const [inline, virtual]
 

Returns the variance.

Reimplemented from RazorBack::Distrbase_.

Definition at line 133 of file Distrfunc.hh.

double RazorBack::Uniform_::skew ( ) const [inline, virtual]
 

Returns the skewness of the distribution.

Reimplemented from RazorBack::Distrbase_.

Definition at line 136 of file Distrfunc.hh.

double RazorBack::Uniform_::kurt ( ) const [inline, virtual]
 

Returns the kurtosis of the distribution.

Reimplemented from RazorBack::Distrbase_.

Definition at line 139 of file Distrfunc.hh.

double RazorBack::Uniform_::entropy ( ) const [inline, virtual]
 

Returns the entropy.

Reimplemented from RazorBack::Distrbase_.

Definition at line 142 of file Distrfunc.hh.

double RazorBack::Uniform_::random ( void ) const [inline, virtual]
 

Returns a random number from this uniform distribution.

Reimplemented from RazorBack::Distrbase_.

Definition at line 145 of file Distrfunc.hh.


Member Data Documentation

Randomuni_ RazorBack::Uniform_::Rand [private]
 

uniform random number generator.

Definition at line 79 of file Distrfunc.hh.

double RazorBack::Uniform_::Range [private]
 

upper-lower limit.

Definition at line 80 of file Distrfunc.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:20 2002 for The Razorback C++ Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001