UniformDist Class Reference

Uniform distribution. More...

#include <XeStat.h>

Inheritance diagram for UniformDist:
XeDist XeStat XeMath XeObject XeCore XeCore

List of all members.

Public Member Functions

double cdf (double x)
 return the cumulated distribution function
double generate ()
 generate a pseudo random variable according to this distribution
double pdf (double x)
 return the normalized probability distribution function
void setLimits (double a, double b)
 Reset the limits.
 UniformDist (double a, double b)
 Regular constructor, uniform between 0 and 1.
 UniformDist ()
 Default constructor, uniform between 0 and 1.

Static Public Member Functions

static double generate (double a, double b)

Protected Attributes

double onew
double x0
double x1

Detailed Description

Uniform distribution.


Constructor & Destructor Documentation

UniformDist::UniformDist ( double  a,
double  b 
)

Regular constructor, uniform between 0 and 1.

Parameters:
a lower bound
b upper band

Member Function Documentation

double UniformDist::cdf ( double  x  )  [virtual]

return the cumulated distribution function

Parameters:
x the random variable

Implements XeDist.

double UniformDist::pdf ( double  x  )  [virtual]

return the normalized probability distribution function

Parameters:
x the random variable

Implements XeDist.

void UniformDist::setLimits ( double  a,
double  b 
)

Reset the limits.

Parameters:
a lower bound
b upper band

The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1