NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
librandom::GammaRandomDev Class Reference

Class GammaRandomDev Create gamma distributed random numbers. More...

#include <gamma_randomdev.h>

Inheritance diagram for librandom::GammaRandomDev:
librandom::RandomDev

Public Member Functions

 GammaRandomDev (RngPtr, double a_in=1.0)
 create with fixed RNG More...
 
 GammaRandomDev (double a_in=1.0)
 create w/o fixed RNG for threaded simulations More...
 
void set_order (double)
 set order More...
 
void set_scale (double)
 set scale parameter More...
 
void set_status (const DictionaryDatum &)
 set distribution parameters from SLI dict More...
 
void get_status (DictionaryDatum &) const
 get distribution parameters from SLI dict More...
 
double operator() (RngPtr) const
 draw number, threaded More...
 
double operator() (RngPtr, double)
 draw number, threaded, explicit order More...
 
- Public Member Functions inherited from librandom::RandomDev
 RandomDev (RngPtr rng=RngPtr(0))
 Construct with (single-threaded) or without (multithreaded) RNG. More...
 
virtual ~RandomDev ()
 ensure proper clean-up More...
 
virtual double operator() (void)
 Operator delivering doubles. More...
 
virtual long ldev (void)
 integer valued functions for discrete distributions More...
 
virtual long ldev (RngPtr) const
 
virtual bool has_ldev () const
 true if RDG implements ldev function More...
 
void set_rng (RngPtr rng)
 set RNG More...
 

Private Member Functions

double unscaled_gamma (RngPtr r) const
 

Private Attributes

double a
 worker function creating Gamma(x; order, 1) number More...
 
double b_
 
double bb
 
double bc
 
double ju
 
double jv
 

Additional Inherited Members

- Protected Attributes inherited from librandom::RandomDev
RngPtr rng_
 store underlying RNG More...
 

Detailed Description

Class GammaRandomDev Create gamma distributed random numbers.

Constructor & Destructor Documentation

librandom::GammaRandomDev::GammaRandomDev ( RngPtr  r_source,
double  a_in = 1.0 
)

create with fixed RNG

References a, and set_order().

librandom::GammaRandomDev::GammaRandomDev ( double  a_in = 1.0)

create w/o fixed RNG for threaded simulations

References a, and set_order().

Member Function Documentation

void librandom::GammaRandomDev::get_status ( DictionaryDatum d) const
virtual

get distribution parameters from SLI dict

Implements librandom::RandomDev.

References nest::names::a, and nest::names::d.

double librandom::GammaRandomDev::operator() ( RngPtr  r) const
inlinevirtual

draw number, threaded

Implements librandom::RandomDev.

References b_, and unscaled_gamma().

double librandom::GammaRandomDev::operator() ( RngPtr  rthrd,
double  a 
)
inline

draw number, threaded, explicit order

References set_order().

void librandom::GammaRandomDev::set_order ( double  a_in = 1.0)
inline

set order

References a, assert(), bb, bc, ju, and jv.

Referenced by GammaRandomDev(), and operator()().

void librandom::GammaRandomDev::set_scale ( double  )

set scale parameter

void librandom::GammaRandomDev::set_status ( const DictionaryDatum d)
virtual

set distribution parameters from SLI dict

Implements librandom::RandomDev.

References nest::names::a, and nest::names::d.

double librandom::GammaRandomDev::unscaled_gamma ( RngPtr  r) const
private

Member Data Documentation

double librandom::GammaRandomDev::a
private

worker function creating Gamma(x; order, 1) number

Referenced by GammaRandomDev(), and set_order().

double librandom::GammaRandomDev::b_
private

Referenced by operator()().

double librandom::GammaRandomDev::bb
private

Referenced by set_order().

double librandom::GammaRandomDev::bc
private

Referenced by set_order().

double librandom::GammaRandomDev::ju
private

Referenced by set_order().

double librandom::GammaRandomDev::jv
private

Referenced by set_order().


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