LibRan
0.1
Pseudo-random number distribution generator
|
The negative-exponential distribution has mean m and deviation m. More...
Go to the source code of this file.
Functions | |
double | LRd_nexp_RAN (LR_obj *o) |
LRd_nexp_RAN(LR_obj *o) - double random negative exponential distribution using the inversion method. Default values: peak m = 1. More... | |
double | LRd_nexp_PDF (LR_obj *o, double x) |
LRd_nexp_PDF(LR_obj *o, double x) - double negative exponential probablity distribution function. More... | |
double | LRd_nexp_CDF (LR_obj *o, double x) |
LRd_nexp_CDF(LR_obj *o, double x) - double negative exponential cumulative distribution function. More... | |
float | LRf_nexp_RAN (LR_obj *o) |
LRf_nexp_RAN(LR_obj *o) - float random negative exponential distribution using the inversion method. Default values: peak m = 1. More... | |
float | LRf_nexp_PDF (LR_obj *o, float x) |
LRf_nexp_PDF(LR_obj *o, float x) - float negative exponential probablity distribution function. More... | |
float | LRf_nexp_CDF (LR_obj *o, float x) |
LRf_nexp_CDF(LR_obj *o, float x) - float negative exponential cumulative distribution function. More... | |
The negative-exponential distribution has mean m and deviation m.
The pseudo-random numbers are distributed from a negative exponential distribution. It's only defined on interval and zero otherwise. This distribution typically represents the time between events of a Poisson point process, i.e. a process in which events occur continuously and independently at a constant average rate.
The default is and s will be set to
for calculation efficiency. Do not set s when declaring this distribution.
Definition in file LRnexp.c.
double LRd_nexp_CDF | ( | LR_obj * | o, |
double | x | ||
) |
LRd_nexp_CDF(LR_obj *o, double x) - double negative exponential cumulative distribution function.
o | LR_obj object |
x | value |
double LRd_nexp_PDF | ( | LR_obj * | o, |
double | x | ||
) |
LRd_nexp_PDF(LR_obj *o, double x) - double negative exponential probablity distribution function.
o | LR_obj object |
x | value |
double LRd_nexp_RAN | ( | LR_obj * | o | ) |
LRd_nexp_RAN(LR_obj *o) - double random negative exponential distribution using the inversion method. Default values: peak m = 1.
o | LR_obj object |
float LRf_nexp_CDF | ( | LR_obj * | o, |
float | x | ||
) |
LRf_nexp_CDF(LR_obj *o, float x) - float negative exponential cumulative distribution function.
o | LR_obj object |
x | value |
float LRf_nexp_PDF | ( | LR_obj * | o, |
float | x | ||
) |
LRf_nexp_PDF(LR_obj *o, float x) - float negative exponential probablity distribution function.
o | LR_obj object |
x | value |
float LRf_nexp_RAN | ( | LR_obj * | o | ) |
LRf_nexp_RAN(LR_obj *o) - float random negative exponential distribution using the inversion method. Default values: peak m = 1.
o | LR_obj object |