Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <neurons_base.hpp>
Public Member Functions | |
NeuronParameters (std::shared_ptr< PopulationData > data, NeuronIndex nid0, NeuronIndex nid1) | |
const std::vector< Real > & | parameters () const |
void | parameters (std::vector< Real > parameters) |
void | set (size_t idx, Real value) |
Real | operator[] (size_t i) const |
const Real * | begin () const |
const Real * | end () const |
size_t | size () const |
Protected Member Functions | |
NeuronParameters (std::initializer_list< Real > parameters) | |
NeuronParameters (const std::vector< Real > ¶meters) | |
const PopulationData & | population_data () const |
PopulationData & | population_data () |
size_t | get_parameters_size () const |
size_t | get_record_size () const |
size_t | get_data_size () const |
const auto & | read_parameters () const |
const auto & | read_record () const |
const auto & | read_data () const |
auto | write_parameters (bool partial=true) |
auto | write_record (bool partial=true) |
auto | write_data (bool partial=true) |
Static Protected Member Functions | |
template<typename Seq > | |
static Seq::value_type | from_sequence (Seq list) |
Base class for the storage of neuron parameters. Basically this class just contains a vector of floats, where each float in the vector corresponds to a single parameter.
|
inlineprotected |
Constructor allowing to set the neuron parameters to the given values.
|
inlineprotected |
Constructor allowing to set the neuron parameters to the given values.
|
inline |
Constructor allowing the NeuronParameters class to act as a view onto an existing set of parameters.
|
inline |
Returns an iterator allowing to iterate over the parameter vector.
|
inline |
Returns an iterator allowing to iterate over the parameter vector.
|
inlinestaticprotectedinherited |
Templated method which allows to construct a PopulationDataView with its own data from a list of PopulationData objects. This method is used by the various neuron parameter and signal implementations to be able to supply a list of parameters/signals to the various constructors.
|
inlineprotectedinherited |
Returns the size of the record vector. Throws an exception if the neurons in the given range do not share parameters of the same size.
|
inlineprotectedinherited |
Returns the size of the parameter vector. Throws an exception if the neurons in the given range do not share parameters of the same size.
|
inlineprotectedinherited |
Returns the size of the record vector. Throws an exception if the neurons in the given range do not share parameters of the same size.
|
inline |
Returns a read-only reference at the i-th element in the parameter vector.
|
inline |
Returns a read-only reference at the parameter vector.
|
inline |
Sets the all parameters at once. Use with caution, parameters have to be in the correct order
parameters | vector of parameters |
|
inlineprotectedinherited |
Returns a const reference at the underlying PopulationData.
|
inlineprotectedinherited |
Returns a reference at the underlying PopulationData.
|
inlineprotectedinherited |
Returns a const-reference at the vector containing the recorded data for the neurons represented by this view. Throws an exception if the neurons in this view do not share the same record flags.
|
inlineprotectedinherited |
Returns a const-reference at the parameter vector for the neurons represented by this view. Throws an exception if the neurons in this view do not share the same parameters.
|
inlineprotectedinherited |
Returns a const-reference at the vector specifying whether a signal should be recorded or not for the neurons represented by this view. Throws an exception if the neurons in this view do not share the same record flags.
|
inline |
Sets the parameter with the given index to the specified value.
idx | is the parameter that should be updated. |
value | is the value the parameter should be set to. |
|
inline |
Returns the size of the parameter vector. Aborts if the population is non-uniform.
|
inlineprotectedinherited |
Returns an iteratble range allowing to write the recorded data for the range of neurons represented by this vie2. Assumes that the data is being set to the same value for the specified range.
partial | if true, indicates that the record data is not entirely overridden, preventing the method from re-homogenising the data. |
|
inlineprotectedinherited |
Returns an iterable range allowing to modify the parameters for the range of neurons represented by this view. Assumes that the data is being set to the same value for the specified range.
partial | if true, indicates that the parameters are not entirely overridden, preventing the method from re-homogenising the data. |
|
inlineprotectedinherited |
Returns an iteratble range allowing to modify the record flags for the range of neurons represented by this view. Assumes that the data is being set to the same value for the specified range.
partial | if true, indicates that the record flags are not entirely overridden, preventing the method from re-homogenising the data. |