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

Class UniformRandomDev Create uniformly distributed random numbers in [low, high). More...

#include <uniform_randomdev.h>

Inheritance diagram for librandom::UniformRandomDev:
librandom::RandomDev

Public Member Functions

 UniformRandomDev (RngPtr r_in)
 
 UniformRandomDev ()
 
double operator() (RngPtr rthrd) 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 low_
 lower bound, included More...
 
double high_
 upper bound, excluded More...
 
double delta_
 interval width More...
 

Additional Inherited Members

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

Detailed Description

Class UniformRandomDev Create uniformly distributed random numbers in [low, high).

Constructor & Destructor Documentation

librandom::UniformRandomDev::UniformRandomDev ( RngPtr  r_in)
librandom::UniformRandomDev::UniformRandomDev ( )

Member Function Documentation

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

get distribution parameters from SLI dict

Implements librandom::RandomDev.

References nest::names::d.

double librandom::UniformRandomDev::operator() ( RngPtr  ) const
inlinevirtual

multi-threaded

Implements librandom::RandomDev.

References delta_, and low_.

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

set distribution parameters from SLI dict

Implements librandom::RandomDev.

References nest::names::d.

Member Data Documentation

double librandom::UniformRandomDev::delta_
private

interval width

Referenced by operator()().

double librandom::UniformRandomDev::high_
private

upper bound, excluded

double librandom::UniformRandomDev::low_
private

lower bound, included

Referenced by operator()().


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