BioDynaMo
v1.05.120-25dc9790
|
Random number generator that generates samples from a distribution. More...
#include <random.h>
Public Member Functions | |
DistributionRng ()=default | |
DistributionRng (TRootIOCtor *) | |
virtual | ~DistributionRng ()=default |
TSample | Sample () |
Draws a sample from the distribution. More... | |
MathArray< TSample, 2 > | Sample2 () |
MathArray< TSample, 3 > | Sample3 () |
template<uint64_t N> | |
MathArray< TSample, N > | SampleArray () |
Protected Member Functions | |
virtual TSample | SampleImpl (TRandom *rng)=0 |
virtual MathArray< TSample, 2 > | Sample2Impl (TRandom *rng) |
virtual MathArray< TSample, 3 > | Sample3Impl (TRandom *rng) |
BDM_CLASS_DEF (DistributionRng, 1) | |
Random number generator that generates samples from a distribution.
|
default |
|
inline |
|
virtualdefault |
|
protected |
template int bdm::DistributionRng< TSample >::Sample | ( | ) |
template MathArray< int, 2 > bdm::DistributionRng< TSample >::Sample2 | ( | ) |
|
protectedvirtual |
Reimplemented in bdm::UserDefinedDistRng3D, and bdm::UserDefinedDistRng2D.
template MathArray< int, 3 > bdm::DistributionRng< TSample >::Sample3 | ( | ) |
|
protectedvirtual |
Reimplemented in bdm::UserDefinedDistRng3D.
|
inline |
|
protectedpure virtual |