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:
Collaboration diagram for bdm::BinomialRng:

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

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

◆ ~BinomialRng()

bdm::BinomialRng::~BinomialRng ( )

Member Function Documentation


bdm::BinomialRng::BDM_CLASS_DEF_OVERRIDE ( BinomialRng  ,

◆ SampleImpl()

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

Implements bdm::DistributionRng< int >.

Definition at line 352 of file

Member Data Documentation

◆ ntot_

int bdm::BinomialRng::ntot_

Definition at line 240 of file random.h.

◆ prob_

real_t bdm::BinomialRng::prob_

Definition at line 241 of file random.h.

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