LibRan
0.1
Pseudo-random number distribution generator
|
The Poisson distribution with rate p > 0. More...
Go to the source code of this file.
Functions | |
int | LRi_poisson_RAN (LR_obj *o) |
LRi_poisson_RAN(LR_obj *o) - int Poisson distributed variate. Default values: scale m = 1. More... | |
float | LRi_poisson_PDF (LR_obj *o, int x) |
LRi_poisson_PDF(LR_obj *o, int x) - Poisson probablity (or mass) distribution function. More... | |
float | LRi_poisson_CDF (LR_obj *o, int x) |
LRi_poisson_CDF(LR_obj *o, int x) - Poisson distribution cumulative distribution function. More... | |
The Poisson distribution with rate p > 0.
The pseudo-random numbers are distributed from the Poisson distribution, which is a discrete distribution describing the number of events occurring in a fixed interval of time.
The attribute p is greater than zero and represents the "rate" of events per unit interval (and need not be integer). Therefore, p is the mean number of events per unit interval.
The default is and q will be set to
for calculation efficiency. Do not set q when declaring this distribution.
Definition in file LRpoisson.c.
float LRi_poisson_CDF | ( | LR_obj * | o, |
int | x | ||
) |
LRi_poisson_CDF(LR_obj *o, int x) - Poisson distribution cumulative distribution function.
o | LR_obj object |
x | value |
Definition at line 116 of file LRpoisson.c.
float LRi_poisson_PDF | ( | LR_obj * | o, |
int | x | ||
) |
LRi_poisson_PDF(LR_obj *o, int x) - Poisson probablity (or mass) distribution function.
o | LR_obj object |
x | value |
Definition at line 91 of file LRpoisson.c.
int LRi_poisson_RAN | ( | LR_obj * | o | ) |
LRi_poisson_RAN(LR_obj *o) - int Poisson distributed variate. Default values: scale m = 1.
o | LR_obj object |
Definition at line 66 of file LRpoisson.c.