NEST main@f146f75
Loading...
Searching...
No Matches
nest::GaussianParameter Class Reference

Parameter class representing a gaussian distribution applied on a parameter. More...

#include <parameter.h>

Inheritance diagram for nest::GaussianParameter:
[legend]
Collaboration diagram for nest::GaussianParameter:
[legend]

Public Member Functions

 GaussianParameter (const Dictionary &d)
 Construct the parameter from a dictionary of arguments.
 GaussianParameter (const GaussianParameter &p)
double value (RngPtr, Node *) override
double value (RngPtr rng, const std::vector< double > &source_pos, const std::vector< double > &target_pos, const AbstractLayer &layer, Node *node) override
 Generates a value based on parameter specifications and arguments.
Public Member Functions inherited from nest::Parameter
 Parameter (bool is_spatial=false, bool returns_int_only=false)
 Creates a Parameter, with optionally specified attributes.
 Parameter (const Parameter &p)=default
virtual ~Parameter ()=default
std::vector< double > apply (const NodeCollectionPTR &, const std::vector< std::vector< double > > &)
 Applies a parameter on a single-node ID NodeCollection and given array of positions.
bool is_spatial () const
 Check if the Parameter is based on spatial properties.
bool returns_int_only () const
 Check if the Parameter only returns integer values.

Protected Attributes

ParameterPTR const p_
const double mean_
const double inv_two_std2_
Protected Attributes inherited from nest::Parameter
bool is_spatial_ { false }
bool returns_int_only_ { false }

Additional Inherited Members

Protected Member Functions inherited from nest::Parameter
bool value_is_integer_ (const double value) const

Detailed Description

Parameter class representing a gaussian distribution applied on a parameter.

Can only be used when connecting spatially distributed nodes.

Constructor & Destructor Documentation

◆ GaussianParameter() [1/2]

nest::GaussianParameter::GaussianParameter ( const Dictionary & d)

Construct the parameter from a dictionary of arguments.

References inv_two_std2_, mean_, p_, and nest::Parameter::Parameter().

Referenced by GaussianParameter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GaussianParameter() [2/2]

nest::GaussianParameter::GaussianParameter ( const GaussianParameter & p)
inline

References GaussianParameter(), inv_two_std2_, mean_, p_, and nest::Parameter::Parameter().

Here is the call graph for this function:

Member Function Documentation

◆ value() [1/2]

double nest::GaussianParameter::value ( RngPtr rng,
const std::vector< double > & source_pos,
const std::vector< double > & target_pos,
const AbstractLayer & layer,
Node * node )
overridevirtual

Generates a value based on parameter specifications and arguments.

Used when connecting spatial nodes. Note that not all parameters support all overloaded versions.

Parameters
rngpointer to the random number generator
source_posposition of the source node
target_posposition of the target node
layerspatial layer
nodetarget node, required for normal and lognormal parameters
Returns
the value of the parameter.

Reimplemented from nest::Parameter.

References inv_two_std2_, mean_, and p_.

◆ value() [2/2]

double nest::GaussianParameter::value ( RngPtr ,
Node *  )
inlineoverridevirtual
Returns
the value of the parameter.

Reimplemented from nest::Parameter.

Member Data Documentation

◆ inv_two_std2_

const double nest::GaussianParameter::inv_two_std2_
protected

◆ mean_

const double nest::GaussianParameter::mean_
protected

◆ p_

ParameterPTR const nest::GaussianParameter::p_
protected

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