BioDynaMo  v1.03.58-27764645
Public Member Functions | Private Member Functions | Private Attributes | List of all members
bdm::BinomialRng Class Reference

#include <random.h>

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

Public Member Functions

 BinomialRng (int ntot, real_t prob)
 
virtual ~BinomialRng ()
 
- 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 (BinomialRng, 1)
 

Private Attributes

int ntot_
 
real_t prob_
 

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 234 of file random.h.

Constructor & Destructor Documentation

◆ BinomialRng()

bdm::BinomialRng::BinomialRng ( int  ntot,
real_t  prob 
)

Definition at line 350 of file random.cc.

◆ ~BinomialRng()

bdm::BinomialRng::~BinomialRng ( )
virtualdefault

Member Function Documentation

◆ BDM_CLASS_DEF_OVERRIDE()

bdm::BinomialRng::BDM_CLASS_DEF_OVERRIDE ( BinomialRng  ,
 
)
private

◆ SampleImpl()

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

Implements bdm::DistributionRng< int >.

Definition at line 352 of file random.cc.

Member Data Documentation

◆ ntot_

int bdm::BinomialRng::ntot_
private

Definition at line 240 of file random.h.

◆ prob_

real_t bdm::BinomialRng::prob_
private

Definition at line 241 of file random.h.


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