BioDynaMo  v1.05.120-25dc9790
Public Member Functions | Private Member Functions | Private Attributes | List of all members
bdm::PoissonRng Class Reference

#include <random.h>

Inheritance diagram for bdm::PoissonRng:
[legend]
Collaboration diagram for bdm::PoissonRng:
[legend]

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)
 

Detailed Description

Definition at line 247 of file random.h.

Constructor & Destructor Documentation

◆ PoissonRng()

bdm::PoissonRng::PoissonRng ( real_t  mean)

Definition at line 363 of file random.cc.

◆ ~PoissonRng()

bdm::PoissonRng::~PoissonRng ( )
overridedefault

Member Function Documentation

◆ BDM_CLASS_DEF_OVERRIDE()

bdm::PoissonRng::BDM_CLASS_DEF_OVERRIDE ( PoissonRng  ,
 
)
private

◆ SampleImpl()

int bdm::PoissonRng::SampleImpl ( TRandom *  rng)
overrideprivatevirtual

Implements bdm::DistributionRng< int >.

Definition at line 365 of file random.cc.

Member Data Documentation

◆ mean_

real_t bdm::PoissonRng::mean_
private

Definition at line 253 of file random.h.


The documentation for this class was generated from the following files: