Position-generating Parameter class. More...
#include <parameter.h>
Public Member Functions | |
| DimensionParameter (ParameterPTR px, ParameterPTR py) | |
| Construct the Parameter with one given Parameter per dimension. | |
| DimensionParameter (ParameterPTR px, ParameterPTR py, ParameterPTR pz) | |
| DimensionParameter (const DimensionParameter &p) | |
| double | value (RngPtr, Node *) override |
| The DimensionParameter has no double value, so this method will always throw. | |
| std::vector< double > | get_values (RngPtr rng) |
| Generates a position with values for each dimension generated from their respective parameters. | |
| int | get_num_dimensions () const |
| virtual double | value (RngPtr, Node *) |
| Generates a value based on parameter specifications and arguments. | |
| virtual double | value (RngPtr rng, const std::vector< double > &source_pos, const std::vector< double > &target_pos, const AbstractLayer &layer, Node *node) |
| 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 | |
| int | num_dimensions_ |
| ParameterPTR const | px_ |
| ParameterPTR const | py_ |
| ParameterPTR const | pz_ |
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 |
Position-generating Parameter class.
One Parameter per dimension is stored. When getting a position vector, a value for each dimension is generated from their respective Parameters.
|
inline |
|
inline |
|
inline |
|
inline |
References num_dimensions_.
|
inline |
Generates a position with values for each dimension generated from their respective parameters.
References num_dimensions_, px_, py_, and pz_.
|
inlinevirtual |
Generates a value based on parameter specifications and arguments.
Used when connecting spatial nodes. Note that not all parameters support all overloaded versions.
| 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 |
Reimplemented from nest::Parameter.
Generates a value based on parameter specifications and arguments.
Used when getting a parameter value based on random values or node attributes, like position. Note that not all parameters support all overloaded versions.
| rng | pointer to the random number generator |
| node | pointer to the node, used when the node position is relevant |
Reimplemented from nest::Parameter.
The DimensionParameter has no double value, so this method will always throw.
Reimplemented from nest::Parameter.
|
protected |
Referenced by get_num_dimensions(), and get_values().
|
protected |
Referenced by get_values().
|
protected |
Referenced by get_values().
|
protected |
Referenced by get_values().