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

Random parameter with normal distribution, optionally truncated to [min,max). More...

#include <parameter.h>

Inheritance diagram for nest::NormalParameter:
nest::Parameter

Public Member Functions

 NormalParameter (const DictionaryDatum &d)
 Parameters: mean - mean value sigma - standard distribution min - minimum value max - maximum value. More...
 
double_t raw_value (librandom::RngPtr &rng) const
 
double_t raw_value (const Position< 2 > &, librandom::RngPtr &rng) const
 Raw value disregarding cutoff. More...
 
double_t raw_value (const Position< 3 > &, librandom::RngPtr &rng) const
 Raw value disregarding cutoff. More...
 
Parameterclone () const
 Clone method. More...
 
- Public Member Functions inherited from nest::Parameter
 Parameter ()
 Default constructor. More...
 
 Parameter (double_t cutoff)
 Constructor. More...
 
 Parameter (const DictionaryDatum &d)
 Constructor Parameter that can be set in the Dictionary: cutoff - Values less than the cutoff are set to zero. More...
 
virtual ~Parameter ()
 Virtual destructor. More...
 
double_t value (const Position< 2 > &p, librandom::RngPtr &rng) const
 
double_t value (const Position< 3 > &p, librandom::RngPtr &rng) const
 
double_t value (const std::vector< double_t > &pt, librandom::RngPtr &rng) const
 
virtual Parametermultiply_parameter (const Parameter &other) const
 Create the product of this parameter with another. More...
 
virtual Parameterdivide_parameter (const Parameter &other) const
 Create the quotient of this parameter with another. More...
 
virtual Parameteradd_parameter (const Parameter &other) const
 Create the sum of this parameter with another. More...
 
virtual Parametersubtract_parameter (const Parameter &other) const
 Create the difference of this parameter with another. More...
 

Private Attributes

double_t mean_
 
double_t sigma_
 
double_t min_
 
double_t max_
 
librandom::NormalRandomDev rdev
 

Detailed Description

Random parameter with normal distribution, optionally truncated to [min,max).

Truncation is implemented by rejection.

Constructor & Destructor Documentation

nest::NormalParameter::NormalParameter ( const DictionaryDatum d)
inline

Parameters: mean - mean value sigma - standard distribution min - minimum value max - maximum value.

References nest::names::d, nest::names::max, max_, nest::names::mean, mean_, nest::names::min, min_, nest::names::sigma, and sigma_.

Referenced by clone().

Member Function Documentation

Parameter* nest::NormalParameter::clone ( ) const
inlinevirtual

Clone method.

Returns
dynamically allocated copy of parameter object

Implements nest::Parameter.

References NormalParameter().

double_t nest::NormalParameter::raw_value ( librandom::RngPtr rng) const
inline

References max_, mean_, min_, rdev, and sigma_.

Referenced by raw_value().

double_t nest::NormalParameter::raw_value ( const Position< 2 > &  ,
librandom::RngPtr  
) const
inlinevirtual

Raw value disregarding cutoff.

Returns
the value of the parameter at the given point.

Reimplemented from nest::Parameter.

References raw_value().

double_t nest::NormalParameter::raw_value ( const Position< 3 > &  ,
librandom::RngPtr  
) const
inlinevirtual

Raw value disregarding cutoff.

Returns
the value of the parameter at the given point.

Reimplemented from nest::Parameter.

References raw_value().

Member Data Documentation

double_t nest::NormalParameter::max_
private

Referenced by NormalParameter(), and raw_value().

double_t nest::NormalParameter::mean_
private

Referenced by NormalParameter(), and raw_value().

double_t nest::NormalParameter::min_
private

Referenced by NormalParameter(), and raw_value().

librandom::NormalRandomDev nest::NormalParameter::rdev
private

Referenced by raw_value().

double_t nest::NormalParameter::sigma_
private

Referenced by NormalParameter(), and raw_value().


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