Class PoissonRandomDev Create Poisson distributed random numbers.
More...
#include <poisson_randomdev.h>
|
void | init_ () |
| re-compute internal parameters More...
|
|
void | proc_f_ (const unsigned k, double &px, double &py, double &fx, double &fy) const |
| Procedure F from Ahrens & Dieter. More...
|
|
|
static const unsigned | n_tab_ = 46 |
| tabulate P_0 ... P_{n_tab_-1} More...
|
|
static const unsigned | fact_ [] |
| array of factorials 0! .. 10! More...
|
|
static const double | a_ [] |
| array of a_i coeffs More...
|
|
static const unsigned | n_a_ = 10 |
| length of array More...
|
|
Class PoissonRandomDev Create Poisson distributed random numbers.
librandom::PoissonRandomDev::PoissonRandomDev |
( |
RngPtr |
r_source, |
|
|
double |
lambda = 0.0 |
|
) |
| |
librandom::PoissonRandomDev::PoissonRandomDev |
( |
double |
lambda = 0.0 | ) |
|
bool librandom::PoissonRandomDev::has_ldev |
( |
| ) |
const |
|
inlinevirtual |
void librandom::PoissonRandomDev::init_ |
( |
| ) |
|
|
private |
long librandom::PoissonRandomDev::ldev |
( |
RngPtr |
r | ) |
const |
|
virtual |
double librandom::PoissonRandomDev::operator() |
( |
RngPtr |
rthrd | ) |
const |
|
inlinevirtual |
void librandom::PoissonRandomDev::proc_f_ |
( |
const unsigned |
k, |
|
|
double & |
px, |
|
|
double & |
py, |
|
|
double & |
fx, |
|
|
double & |
fy |
|
) |
| const |
|
private |
void librandom::PoissonRandomDev::set_lambda |
( |
double |
lambda | ) |
|
const double librandom::PoissonRandomDev::a_ |
|
staticprivate |
Initial value:= { -0.5000000002,
0.3333333343,
-0.2499998565,
0.1999997049,
-0.1666848753,
0.1428833286,
-0.1241963125,
0.1101687109,
-0.1142650302,
0.1055093006
}
array of a_i coeffs
double librandom::PoissonRandomDev::c0_ |
|
private |
double librandom::PoissonRandomDev::c1_ |
|
private |
double librandom::PoissonRandomDev::c2_ |
|
private |
double librandom::PoissonRandomDev::c3_ |
|
private |
double librandom::PoissonRandomDev::c_ |
|
private |
double librandom::PoissonRandomDev::d_ |
|
private |
const unsigned librandom::PoissonRandomDev::fact_ |
|
staticprivate |
Initial value:=
{ 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880 }
array of factorials 0! .. 10!
unsigned long librandom::PoissonRandomDev::L_ |
|
private |
double librandom::PoissonRandomDev::mu_ |
|
private |
Poisson parameter, aka lambda.
const unsigned librandom::PoissonRandomDev::n_a_ = 10 |
|
staticprivate |
const unsigned librandom::PoissonRandomDev::n_tab_ = 46 |
|
staticprivate |
tabulate P_0 ... P_{n_tab_-1}
double librandom::PoissonRandomDev::om_ |
|
private |
std::vector<double> librandom::PoissonRandomDev::P_ |
|
private |
RngPtr librandom::PoissonRandomDev::r |
|
private |
double librandom::PoissonRandomDev::s_ |
|
private |
The documentation for this class was generated from the following files: