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

#include <random.h>

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

Public Member Functions

 UserDefinedDistRng1D (TRootIOCtor *ioctor)
 
 UserDefinedDistRng1D (TF1 *function, const char *option)
 
virtual ~UserDefinedDistRng1D ()
 
void Draw (const char *option="")
 
TF1 * GetTF1 ()
 
- 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 (UserDefinedDistRng1D, 1)
 

Private Attributes

TF1 * function_ = nullptr
 
const char * option_ = nullptr
 

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 138 of file random.h.

Constructor & Destructor Documentation

◆ UserDefinedDistRng1D() [1/2]

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

Definition at line 140 of file random.h.

◆ UserDefinedDistRng1D() [2/2]

bdm::UserDefinedDistRng1D::UserDefinedDistRng1D ( TF1 *  function,
const char *  option 
)

Definition at line 231 of file random.cc.

◆ ~UserDefinedDistRng1D()

bdm::UserDefinedDistRng1D::~UserDefinedDistRng1D ( )
virtualdefault

Member Function Documentation

◆ BDM_CLASS_DEF_OVERRIDE()

bdm::UserDefinedDistRng1D::BDM_CLASS_DEF_OVERRIDE ( UserDefinedDistRng1D  ,
 
)
private

◆ Draw()

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

Definition at line 243 of file random.cc.

◆ GetTF1()

TF1 * bdm::UserDefinedDistRng1D::GetTF1 ( )

Definition at line 244 of file random.cc.

◆ SampleImpl()

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

Implements bdm::DistributionRng< real_t >.

Definition at line 238 of file random.cc.

Member Data Documentation

◆ function_

TF1* bdm::UserDefinedDistRng1D::function_ = nullptr
private

Definition at line 149 of file random.h.

◆ option_

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

Definition at line 150 of file random.h.


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