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

#include <random.h>

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

Public Member Functions

 UniformRng (real_t min, real_t max)
 
 ~UniformRng () override
 
- Public Member Functions inherited from bdm::DistributionRng< real_t >
 DistributionRng ()=default
 
 DistributionRng (TRootIOCtor *)
 
virtual ~DistributionRng ()=default
 
real_t Sample ()
 Draws a sample from the distribution. More...
 
MathArray< real_t, 2 > Sample2 ()
 
MathArray< real_t, 3 > Sample3 ()
 
MathArray< real_t, N > SampleArray ()
 

Private Member Functions

real_t SampleImpl (TRandom *rng) override
 
 BDM_CLASS_DEF_OVERRIDE (UniformRng, 1)
 

Private Attributes

real_t min_
 
real_t max_
 

Additional Inherited Members

- Protected Member Functions inherited from bdm::DistributionRng< real_t >
virtual MathArray< real_t, 2 > Sample2Impl (TRandom *rng)
 
virtual MathArray< real_t, 3 > Sample3Impl (TRandom *rng)
 
 BDM_CLASS_DEF (DistributionRng, 1)
 

Detailed Description

Definition at line 66 of file random.h.

Constructor & Destructor Documentation

◆ UniformRng()

bdm::UniformRng::UniformRng ( real_t  min,
real_t  max 
)

Definition at line 176 of file random.cc.

◆ ~UniformRng()

bdm::UniformRng::~UniformRng ( )
overridedefault

Member Function Documentation

◆ BDM_CLASS_DEF_OVERRIDE()

bdm::UniformRng::BDM_CLASS_DEF_OVERRIDE ( UniformRng  ,
 
)
private

◆ SampleImpl()

real_t bdm::UniformRng::SampleImpl ( TRandom *  rng)
overrideprivatevirtual

Implements bdm::DistributionRng< real_t >.

Definition at line 178 of file random.cc.

Member Data Documentation

◆ max_

real_t bdm::UniformRng::max_
private

Definition at line 72 of file random.h.

◆ min_

real_t bdm::UniformRng::min_
private

Definition at line 72 of file random.h.


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