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

Create normal (Gaussian) random numbers with uniform variance. More...

#include <normal_randomdev.h>

Inheritance diagram for librandom::NormalRandomDev:
librandom::RandomDev

Public Member Functions

 NormalRandomDev (RngPtr)
 
 NormalRandomDev ()
 
double operator() (RngPtr) const
 multi-threaded 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...
 
- 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 Attributes

double mu_
 
double sigma_
 

Additional Inherited Members

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

Detailed Description

Create normal (Gaussian) random numbers with uniform variance.

The numbers are generated using the polar method.

Note
We cannot keep the second deviate until the next call, since the generator may be called by a different thread with its own RNG.7

Constructor & Destructor Documentation

librandom::NormalRandomDev::NormalRandomDev ( RngPtr  r_source)
librandom::NormalRandomDev::NormalRandomDev ( )

Member Function Documentation

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

get distribution parameters from SLI dict

Implements librandom::RandomDev.

References nest::names::d.

double librandom::NormalRandomDev::operator() ( RngPtr  ) const
virtual

multi-threaded

Implements librandom::RandomDev.

References librandom::RandomGen::drand(), and nest::names::S.

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

set distribution parameters from SLI dict

Implements librandom::RandomDev.

References nest::names::d.

Member Data Documentation

double librandom::NormalRandomDev::mu_
private
double librandom::NormalRandomDev::sigma_
private

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