NEST
2.6.0,not_revisioned_source_dir@0
|
Class GammaRandomDev Create gamma distributed random numbers. More...
#include <gamma_randomdev.h>
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... | |
Class GammaRandomDev Create gamma distributed random numbers.
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().
|
virtual |
get distribution parameters from SLI dict
Implements librandom::RandomDev.
References nest::names::a, and nest::names::d.
|
inlinevirtual |
|
inline |
draw number, threaded, explicit order
References set_order().
|
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
|
virtual |
set distribution parameters from SLI dict
Implements librandom::RandomDev.
References nest::names::a, and nest::names::d.
|
private |
References nest::names::a, librandom::RandomGen::drand(), librandom::RandomGen::drandpos(), and nest::names::S.
Referenced by operator()().
|
private |
worker function creating Gamma(x; order, 1) number
Referenced by GammaRandomDev(), and set_order().
|
private |
Referenced by operator()().
|
private |
Referenced by set_order().
|
private |
Referenced by set_order().
|
private |
Referenced by set_order().
|
private |
Referenced by set_order().