Exponential distribution. More...
#include <XeStat.h>
Public Member Functions | |
double | cdf (double x) |
return the cumulated distribution function | |
ExponentialDist (double x0=1.) | |
double | generate () |
generate a pseudo random variable according to this distribution | |
double | logPdf (double x) |
returns logs of probability density function | |
double | pdf (double x) |
return the normalized probability distribution function | |
void | setX0 (double x0) |
Static Public Member Functions | |
static double | generate (double x0) |
generate a pseudo random variable according to exponential distribution | |
Protected Attributes | |
double | x0 |
Exponential distribution.
double ExponentialDist::cdf | ( | double | x | ) | [virtual] |
static double ExponentialDist::generate | ( | double | x0 | ) | [static] |
generate a pseudo random variable according to exponential distribution
x0 | 1/slope |
double ExponentialDist::logPdf | ( | double | x | ) | [virtual] |
returns logs of probability density function
x | Point at which is it evaluated |
Reimplemented from XeDist.
double ExponentialDist::pdf | ( | double | x | ) | [virtual] |
return the normalized probability distribution function
x | the random variable |
Implements XeDist.