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

#include <parameter.h>

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

Public Member Functions

 GaborParameter (const Dictionary &d)
 Construct the parameter from a dictionary of arguments.
 GaborParameter (const GaborParameter &p)
 Copy constructor.
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

std::shared_ptr< Parameter > const px_
std::shared_ptr< Parameter > const py_
const double cos_
const double sin_
const double gamma_
const double inv_two_std2_
const double lambda_
const double psi_
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

Constructor & Destructor Documentation

◆ GaborParameter() [1/2]

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

Construct the parameter from a dictionary of arguments.

References cos_, gamma_, inv_two_std2_, lambda_, nest::Parameter::Parameter(), psi_, px_, py_, and sin_.

Referenced by GaborParameter().

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

◆ GaborParameter() [2/2]

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

Copy constructor.

References cos_, GaborParameter(), gamma_, inv_two_std2_, lambda_, nest::Parameter::Parameter(), psi_, px_, py_, and sin_.

Here is the call graph for this function:

Member Function Documentation

◆ value() [1/2]

double nest::GaborParameter::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 cos_, gamma_, inv_two_std2_, lambda_, numerics::pi, psi_, px_, py_, and sin_.

◆ value() [2/2]

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

Reimplemented from nest::Parameter.

Member Data Documentation

◆ cos_

const double nest::GaborParameter::cos_
protected

◆ gamma_

const double nest::GaborParameter::gamma_
protected

◆ inv_two_std2_

const double nest::GaborParameter::inv_two_std2_
protected

◆ lambda_

const double nest::GaborParameter::lambda_
protected

◆ psi_

const double nest::GaborParameter::psi_
protected

◆ px_

std::shared_ptr< Parameter > const nest::GaborParameter::px_
protected

◆ py_

std::shared_ptr< Parameter > const nest::GaborParameter::py_
protected

◆ sin_

const double nest::GaborParameter::sin_
protected

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