Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <network.hpp>
Public Types | |
using | iterator = iterator_< 1, false > |
using | const_iterator = iterator_< 1, true > |
using | reverse_iterator = iterator_<-1, false > |
using | const_reverse_iterator = iterator_<-1, true > |
Public Member Functions | |
Population (const PopulationBase &population) | |
Population (Network &network, size_t size, const typename T::Parameters ¶ms=typename T::Parameters(), const typename T::Signals &signals=typename T::Signals(), const char *name="") | |
Population (Network &network, size_t size, const typename T::Parameters ¶ms, const char *name) | |
operator PopulationBase () const | |
operator const PopulationBase & () const | |
operator PopulationBase & () | |
const NeuronType & | type () const |
Network | network () const |
PopulationIndex | pid () const |
Neuron< T > | operator[] (NeuronIndex i) |
const Neuron< T > | operator[] (NeuronIndex i) const |
Neuron< T > | operator() (NeuronIndex i) |
const Neuron< T > | operator() (NeuronIndex i) const |
size_t | size () |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
const PopulationView< T > | range (NeuronIndex begin, NeuronIndex end) const |
PopulationView< T > | range (NeuronIndex begin, NeuronIndex end) |
const PopulationView< T > | operator() (NeuronIndex begin, NeuronIndex end) const |
PopulationView< T > | operator() (NeuronIndex begin, NeuronIndex end) |
bool | operator== (const Other &o) const |
bool | operator!= (const Other &o) const |
bool | operator< (const Other &o) const |
bool | operator<= (const Other &o) const |
bool | operator> (const Other &o) const |
bool | operator>= (const Other &o) const |
const T::Parameters | parameters () const |
T::Parameters | parameters () |
const T::Signals | signals () const |
T::Signals | signals () |
const std::string & | name () const |
Population< T > & | name (const std::string &name) |
size_t | size () const |
bool | homogeneous_parameters () const |
bool | homogeneous_record () const |
bool | homogeneous_data () const |
Population< T > & | connect_to (TargetIterator tar_begin, TargetIterator tar_end, std::unique_ptr< Connector > connector, const char *name="") |
Population< T > & | connect_to (const Target &tar, std::unique_ptr< Connector > connector, const char *name="") |
The Population class represents a set of neurons with the given type.
T | is the type of the neurons within the population. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineexplicit |
Creates a population as a handle pointing at an already existing population object.
|
inline |
Creates a new population in the given network.
network | is the network in which the population should be instantiated. |
size | is the number of neurons in the population. |
params | is a vector of parameters with one entry for each neuron in the population. Pass an empty vector if the default parameters should be used. Set a single argument to share the same parameters between all neurons. |
signals | describes from which signals should be recorded. |
name | is the (optional) name of the population. |
|
inline |
Creates a new population in the given network.
network | is the network in which the population should be instantiated. |
size | is the number of neurons in the population. |
params | is a vector of parameters with one entry for each neuron in the population. Pass an empty vector if the default parameters should be used. Set a single argument to share the same parameters between all neurons. |
signals | describes from which signals should be recorded. |
name | is the (optional) name of the population. |
|
inlineinherited |
Returns an iterator at the first neuron in the population. For neurons, returns an iterator pointing at the neuron itself.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Connects all neurons in this Population, PopulationView or Neuron with a range of neurons indicated by the given iterators.
tar_begin | is an iterator pointing at the first neuron in the target population that should be connected. |
tar_end | is an iterator pointing at the last neuron in the target population that should be connected. |
connector | is the object establishing the actual connections. |
|
inlineinherited |
Connects all neurons in this Population, PopulationView or Neuron with the given target, which may be a Population, PopulationView or a single neuron.
tar | is the object this object should be connected with. |
connector | is the object establishing the actual connections. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns an iterator at the last-plus-one neuron in the population.
|
inlineinherited |
|
inlineinherited |
Returns true if the population possesses homogeneous data.
|
inlineinherited |
Returns true if the population possesses homogeneous neuron parameters.
|
inlineinherited |
Returns true if the population possesses homogeneous record flags.
|
inlineinherited |
Returns the name of the population.
|
inlineinherited |
Sets the name of the population and returns a reference at the population object.
|
inline |
Returns a handle pointing at the network this population is located in.
|
inline |
|
inline |
This class can be implicitly converted to PopulationBase, loosing the neuron type information.
|
inline |
|
inlineinherited |
|
inlineinherited |
Returns a constant View object representing a range of neurons relative to this object.
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
|
inlineinherited |
Returns a View object representing a range of neurons relative to this object.
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
|
inlineinherited |
Returns a reference at the i-th neuron in the Population or PopulationView. For neurons, only the index zero is allowed, providing access at the neuron itself.
|
inlineinherited |
Returns a const-reference at the i-th neuron. For neurons, only the index zero is allowed, providing access at the neuron itself.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns a reference at the i-th neuron in the Population or PopulationView. For neurons, only the index zero is allowed, providing access at the neuron itself.
|
inlineinherited |
Returns a const-reference at the i-th neuron. For neurons, only the index zero is allowed, providing access at the neuron itself.
|
inlineinherited |
Returns an object which can be used for reading the parameters of the neurons represented by this object. Note that read access may be constrained when the parameters in the underlying neurons do not possess the same parameters.
|
inlineinherited |
Returns an object which can be used for setting the parameters of the neurons. Note that read access may be constrained when the parameters in the underlying neurons do not possess the same parameters.
|
inline |
Returns the population index of this population.
|
inlineinherited |
Returns a constant View object representing a range of neurons relative to this object.
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
|
inlineinherited |
Returns a View object representing a range of neurons relative to this object.
begin | is the index of the first neuron in the resulting view, relative to the first neuron in this object. |
end | is the index of the last-plus-one neuron in the resulting view, relative to the first neuron in this object. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns an object which can be used for reading the record flags and the recorded data.
|
inlineinherited |
Returns an object which can be used for reading and writing the record flags and the recorded data.
|
inlineinherited |
Returns the number of neurons in the population.
|
inlineinherited |
Returns the size of the population or population view. For single neurons the size is always one.
|
inline |
Returns the type of the population.