Parameter class choosing a value based on a comparing parameter.
More...
#include <parameter.h>
|
| | ConditionalParameter (ParameterPTR condition, ParameterPTR if_true, ParameterPTR if_false) |
| | Construct the choice of two given parameters, based on a third.
|
| |
| | ConditionalParameter (const ConditionalParameter &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.
|
| |
| | 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.
|
| |
Parameter class choosing a value based on a comparing parameter.
◆ ConditionalParameter() [1/2]
Construct the choice of two given parameters, based on a third.
Copies are made of the supplied Parameter objects.
◆ ConditionalParameter() [2/2]
◆ value() [1/2]
| double nest::ConditionalParameter::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
-
| rng | pointer to the random number generator |
| source_pos | position of the source node |
| target_pos | position of the target node |
| layer | spatial layer |
| node | target node, required for normal and lognormal parameters |
- Returns
- the value of the parameter.
Reimplemented from nest::Parameter.
References condition_, if_false_, and if_true_.
◆ value() [2/2]
| double nest::ConditionalParameter::value |
( |
RngPtr |
rng, |
|
|
Node * |
node |
|
) |
| |
|
inlineoverridevirtual |
◆ condition_
◆ if_false_
◆ if_true_
The documentation for this class was generated from the following file: