BioDynaMo  v1.05.120-25dc9790
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)
 
 ~UserDefinedDistRng3D () override
 
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 307 of file random.cc.

◆ ~UserDefinedDistRng3D()

bdm::UserDefinedDistRng3D::~UserDefinedDistRng3D ( )
overridedefault

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 330 of file random.cc.

◆ GetTF3()

TF3 * bdm::UserDefinedDistRng3D::GetTF3 ( )

Definition at line 331 of file random.cc.

◆ Sample2Impl()

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

Reimplemented from bdm::DistributionRng< real_t >.

Definition at line 319 of file random.cc.

◆ Sample3Impl()

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

Reimplemented from bdm::DistributionRng< real_t >.

Definition at line 324 of file random.cc.

◆ SampleImpl()

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

Implements bdm::DistributionRng< real_t >.

Definition at line 314 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: