BioDynaMo
v1.05.120-25dc9790
|
#include <random.h>
Public Member Functions | |
PoissonRng (real_t mean) | |
~PoissonRng () override | |
Public Member Functions inherited from bdm::DistributionRng< int > | |
DistributionRng ()=default | |
DistributionRng (TRootIOCtor *) | |
virtual | ~DistributionRng ()=default |
int | Sample () |
Draws a sample from the distribution. More... | |
MathArray< int, 2 > | Sample2 () |
MathArray< int, 3 > | Sample3 () |
MathArray< int, N > | SampleArray () |
Private Member Functions | |
int | SampleImpl (TRandom *rng) override |
BDM_CLASS_DEF_OVERRIDE (PoissonRng, 1) | |
Private Attributes | |
real_t | mean_ |
Additional Inherited Members | |
Protected Member Functions inherited from bdm::DistributionRng< int > | |
virtual MathArray< int, 2 > | Sample2Impl (TRandom *rng) |
virtual MathArray< int, 3 > | Sample3Impl (TRandom *rng) |
BDM_CLASS_DEF (DistributionRng, 1) | |
|
overridedefault |
|
private |
|
overrideprivatevirtual |
Implements bdm::DistributionRng< int >.