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

#include <random.h>

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

Public Member Functions

 UserDefinedDistRng2D (TRootIOCtor *ioctor)
 
 UserDefinedDistRng2D (TF2 *function, const char *option)
 
 ~UserDefinedDistRng2D () override
 
void Draw (const char *option="")
 
TF2 * GetTF2 ()
 
- 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
 
 BDM_CLASS_DEF_OVERRIDE (UserDefinedDistRng2D, 1)
 

Private Attributes

TF2 * function_ = nullptr
 
const char * option_ = nullptr
 

Additional Inherited Members

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

Detailed Description

Definition at line 155 of file random.h.

Constructor & Destructor Documentation

◆ UserDefinedDistRng2D() [1/2]

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

Definition at line 157 of file random.h.

◆ UserDefinedDistRng2D() [2/2]

bdm::UserDefinedDistRng2D::UserDefinedDistRng2D ( TF2 *  function,
const char *  option 
)

Definition at line 268 of file random.cc.

◆ ~UserDefinedDistRng2D()

bdm::UserDefinedDistRng2D::~UserDefinedDistRng2D ( )
overridedefault

Member Function Documentation

◆ BDM_CLASS_DEF_OVERRIDE()

bdm::UserDefinedDistRng2D::BDM_CLASS_DEF_OVERRIDE ( UserDefinedDistRng2D  ,
 
)
private

◆ Draw()

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

Definition at line 285 of file random.cc.

◆ GetTF2()

TF2 * bdm::UserDefinedDistRng2D::GetTF2 ( )

Definition at line 286 of file random.cc.

◆ Sample2Impl()

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

Reimplemented from bdm::DistributionRng< real_t >.

Definition at line 280 of file random.cc.

◆ SampleImpl()

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

Implements bdm::DistributionRng< real_t >.

Definition at line 275 of file random.cc.

Member Data Documentation

◆ function_

TF2* bdm::UserDefinedDistRng2D::function_ = nullptr
private

Definition at line 167 of file random.h.

◆ option_

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

Definition at line 168 of file random.h.


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