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

#include <random.h>

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

Public Member Functions

 UserDefinedDistRng3D (TRootIOCtor *ioctor)
 
 UserDefinedDistRng3D (TF3 *function, const char *option)
 
virtual ~UserDefinedDistRng3D ()
 
void Draw (const char *option="")
 
TF3 * GetTF3 ()
 
- 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
 
MathArray< real_t, 2 > Sample2Impl (TRandom *rng) override
 
MathArray< real_t, 3 > Sample3Impl (TRandom *rng) override
 
 BDM_CLASS_DEF_OVERRIDE (UserDefinedDistRng3D, 1)
 

Private Attributes

TF3 * function_ = nullptr
 
const char * option_ = nullptr
 

Additional Inherited Members

- Protected Member Functions inherited from bdm::DistributionRng< real_t >
 BDM_CLASS_DEF (DistributionRng, 1)
 

Detailed Description

Definition at line 173 of file random.h.

Constructor & Destructor Documentation

◆ UserDefinedDistRng3D() [1/2]

bdm::UserDefinedDistRng3D::UserDefinedDistRng3D ( TRootIOCtor *  ioctor)
inline

Definition at line 175 of file random.h.

◆ UserDefinedDistRng3D() [2/2]

bdm::UserDefinedDistRng3D::UserDefinedDistRng3D ( TF3 *  function,
const char *  option 
)

Definition at line 305 of file random.cc.

◆ ~UserDefinedDistRng3D()

bdm::UserDefinedDistRng3D::~UserDefinedDistRng3D ( )
virtualdefault

Member Function Documentation

◆ BDM_CLASS_DEF_OVERRIDE()

bdm::UserDefinedDistRng3D::BDM_CLASS_DEF_OVERRIDE ( UserDefinedDistRng3D  ,
 
)
private

◆ Draw()

void bdm::UserDefinedDistRng3D::Draw ( const char *  option = "")

Definition at line 328 of file random.cc.

◆ GetTF3()

TF3 * bdm::UserDefinedDistRng3D::GetTF3 ( )

Definition at line 329 of file random.cc.

◆ Sample2Impl()

MathArray< real_t, 2 > bdm::UserDefinedDistRng3D::Sample2Impl ( TRandom *  rng)
overrideprivatevirtual

Reimplemented from bdm::DistributionRng< real_t >.

Definition at line 317 of file random.cc.

◆ Sample3Impl()

MathArray< real_t, 3 > bdm::UserDefinedDistRng3D::Sample3Impl ( TRandom *  rng)
overrideprivatevirtual

Reimplemented from bdm::DistributionRng< real_t >.

Definition at line 322 of file random.cc.

◆ SampleImpl()

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

Implements bdm::DistributionRng< real_t >.

Definition at line 312 of file random.cc.

Member Data Documentation

◆ function_

TF3* bdm::UserDefinedDistRng3D::function_ = nullptr
private

Definition at line 186 of file random.h.

◆ option_

const char* bdm::UserDefinedDistRng3D::option_ = nullptr
private

Definition at line 187 of file random.h.


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