NEST main@caf0ae8
 
Loading...
Searching...
No Matches
nest::PowParameter Class Reference

Parameter class representing the parameter raised to the power of an exponent. More...

#include <parameter.h>

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

Public Member Functions

 PowParameter (ParameterPTR p, const double exponent)
 Construct the parameter.
 
 PowParameter (const PowParameter &p)
 
double value (RngPtr rng, Node *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 exponent_
 
- 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 the parameter raised to the power of an exponent.

Constructor & Destructor Documentation

◆ PowParameter() [1/2]

nest::PowParameter::PowParameter ( ParameterPTR  p,
const double  exponent 
)
inline

Construct the parameter.

A copy is made of the supplied Parameter object.

◆ PowParameter() [2/2]

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

Member Function Documentation

◆ value() [1/2]

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

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 exponent_, and p_.

◆ value() [2/2]

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

Reimplemented from nest::Parameter.

References exponent_, and p_.

Member Data Documentation

◆ exponent_

const double nest::PowParameter::exponent_
protected

Referenced by value(), and value().

◆ p_

ParameterPTR const nest::PowParameter::p_
protected

Referenced by value(), and value().


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