|
LibRan
0.1
Pseudo-random number distribution generator
|
The Erlang distribution with shape k > 0 and scale m > 0. More...

Go to the source code of this file.
Functions | |
| double | LRd_erlang_RAN (LR_obj *o) |
| LRd_erlang_RAN(LR_obj *o) - double random negative exponential distribution using the inversion method. Default values: scale m = 1. More... | |
| double | LRd_erlang_PDF (LR_obj *o, double x) |
| LRd_erlang_PDF(LR_obj *o, double x) - Erlang distribution probablity distribution function. More... | |
| double | LRd_erlang_CDF (LR_obj *o, double x) |
| LRd_erlang_CDF(LR_obj *o, double x) - Erlang distribution cumulative distribution function. More... | |
| float | LRf_erlang_RAN (LR_obj *o) |
| LRf_erlang_RAN(LR_obj *o) - float random negative exponential distribution using the inversion method. Default values: scale m = 1. More... | |
| float | LRf_erlang_PDF (LR_obj *o, float x) |
| LRf_erlang_PDF(LR_obj *o, float x) - Erlang distribution probablity distribution function. More... | |
| float | LRf_erlang_CDF (LR_obj *o, float x) |
| LRf_erlang_CDF(LR_obj *o, float x) - Erlang distribution cumulative distribution function. More... | |
The Erlang distribution with shape k > 0 and scale m > 0.
The pseudo-random numbers are distributed from the Erlang distribution. It's only defined on interval
and zero otherwise. This distribution typically represents the waiting time between k occurrences of the events. The number of events in a given amount time is described by the Poisson distribution. The attributes k is an integer greater than zero, and the scale m is greater than zero.
The default is
and s will be set to
for calculation efficiency. Do not set s when declaring this distribution. The default for k = 1 , which is also the nexp distribution.
Definition in file LRerlang.c.
| double LRd_erlang_CDF | ( | LR_obj * | o, |
| double | x | ||
| ) |
LRd_erlang_CDF(LR_obj *o, double x) - Erlang distribution cumulative distribution function.
| o | LR_obj object |
| x | value |
Definition at line 118 of file LRerlang.c.
| double LRd_erlang_PDF | ( | LR_obj * | o, |
| double | x | ||
| ) |
LRd_erlang_PDF(LR_obj *o, double x) - Erlang distribution probablity distribution function.
| o | LR_obj object |
| x | value |
Definition at line 87 of file LRerlang.c.
| double LRd_erlang_RAN | ( | LR_obj * | o | ) |
LRd_erlang_RAN(LR_obj *o) - double random negative exponential distribution using the inversion method. Default values: scale m = 1.
| o | LR_obj object |
Definition at line 66 of file LRerlang.c.
| float LRf_erlang_CDF | ( | LR_obj * | o, |
| float | x | ||
| ) |
LRf_erlang_CDF(LR_obj *o, float x) - Erlang distribution cumulative distribution function.
| o | LR_obj object |
| x | value |
Definition at line 194 of file LRerlang.c.
| float LRf_erlang_PDF | ( | LR_obj * | o, |
| float | x | ||
| ) |
LRf_erlang_PDF(LR_obj *o, float x) - Erlang distribution probablity distribution function.
| o | LR_obj object |
| x | value |
Definition at line 163 of file LRerlang.c.
| float LRf_erlang_RAN | ( | LR_obj * | o | ) |
LRf_erlang_RAN(LR_obj *o) - float random negative exponential distribution using the inversion method. Default values: scale m = 1.
| o | LR_obj object |
Definition at line 142 of file LRerlang.c.
1.8.13