UniformDist Class Reference
Uniform distribution.
More...
#include <XeStat.h>
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:
-
Implements XeDist.
| double UniformDist::pdf |
( |
double |
x |
) |
[virtual] |
return the normalized probability distribution function
- Parameters:
-
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:
- /home/lellouch/Dropbox/Xenon/Xephyr/XeStat.h