#include <neurons.hpp>
|
static constexpr size_t | size () |
|
|
template<typename Seq > |
static Seq::value_type | from_sequence (Seq list) |
|
The neuron type associated with this NeuronSignals class.
cypress::IfFacetsHardware1Signals::IfFacetsHardware1Signals |
( |
| ) |
|
|
inline |
void cypress::NeuronSignals::data |
( |
size_t |
i, |
|
|
std::shared_ptr< Matrix< Real >> |
matrix |
|
) |
| |
|
inlineinherited |
Allows to set the data for the i-th data entry.
const Matrix<Real>& cypress::NeuronSignals::data |
( |
size_t |
i | ) |
const |
|
inlineinherited |
Returns a reference at the matrix containing the data for the i-th signal. Throws an SignalNotRecordedException if the signal with the given index is currently not being recorded.
- Parameters
-
i | is the signal index for which the data should be returned. |
- Returns
- a reference at the data matrix.
std::shared_ptr<Matrix<Real> > cypress::NeuronSignals::data_ptr |
( |
size_t |
i | ) |
const |
|
inlineinherited |
Returns a reference at the matrix containing the data for the i-th signal. Throws an SignalNotRecordedException if the signal with the given index is currently not being recorded.
- Parameters
-
i | is the signal index for which the data should be returned. |
- Returns
- a reference at the data matrix.
template<typename Seq >
static Seq::value_type cypress::PopulationDataView::from_sequence |
( |
Seq |
list | ) |
|
|
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.
size_t cypress::PopulationDataView::get_data_size |
( |
| ) |
const |
|
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.
- Returns
- the number of entires in the data array.
size_t cypress::PopulationDataView::get_parameters_size |
( |
| ) |
const |
|
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.
- Returns
- the number of parameters in the parameter array.
size_t cypress::PopulationDataView::get_record_size |
( |
| ) |
const |
|
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.
- Returns
- the number of entires in the record array.
bool cypress::NeuronSignals::is_recording |
( |
size_t |
i | ) |
const |
|
inlineinherited |
Getter for the record flag of the i-th signal.
cypress::IfFacetsHardware1Signals::NAMED_SIGNAL |
( |
spikes |
, |
|
|
0 |
|
|
) |
| |
cypress::IfFacetsHardware1Signals::NAMED_SIGNAL |
( |
v |
, |
|
|
1 |
|
|
) |
| |
const PopulationData& cypress::PopulationDataView::population_data |
( |
| ) |
const |
|
inlineprotectedinherited |
const auto& cypress::PopulationDataView::read_data |
( |
| ) |
const |
|
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.
- Returns
- the record data shared by the neurons in the given range.
const auto& cypress::PopulationDataView::read_parameters |
( |
| ) |
const |
|
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.
- Returns
- the parameters shared by the neurons in the given range.
const auto& cypress::PopulationDataView::read_record |
( |
| ) |
const |
|
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.
- Returns
- the record flags shared by the neurons in the given range.
void cypress::NeuronSignals::record |
( |
size_t |
i, |
|
|
bool |
record = true |
|
) |
| |
|
inlineinherited |
Setter for the record flag of the i-th signal.
- Parameters
-
i | is the index of the signal for which the record flag should be set. |
record | specifies whether the signal should be recorded (true) or not recorded (false). |
size_t cypress::NeuronSignals::size |
( |
| ) |
const |
|
inlineinherited |
Returns the number of signals.
Returns the number of signals.
auto cypress::PopulationDataView::write_data |
( |
bool |
partial = true | ) |
|
|
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.
- Parameters
-
partial | if true, indicates that the record data is not entirely overridden, preventing the method from re-homogenising the data. |
- Returns
- an iterable object pointing at the recorded data for the specified neuron range.
auto cypress::PopulationDataView::write_parameters |
( |
bool |
partial = true | ) |
|
|
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.
- Parameters
-
partial | if true, indicates that the parameters are not entirely overridden, preventing the method from re-homogenising the data. |
- Returns
- an iterable object pointing at the parameters for the specified neuron range.
auto cypress::PopulationDataView::write_record |
( |
bool |
partial = true | ) |
|
|
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.
- Parameters
-
partial | if true, indicates that the record flags are not entirely overridden, preventing the method from re-homogenising the data. |
- Returns
- an iterable object pointing at the record flags for the specified neuron range.
The documentation for this class was generated from the following file: