The projection
namespace contains the creators
, synapse_generators
, and parameters_generators
namespaces.
The namespace also implements the connect_populations
function to link two projections. As a result, the function creates a projection connecting these two populations and adds it to the neural network object. Use this function to link two populations with one of the following images:
creators namespace
The creators
namespace implements functions for generating synapse projections. The namespace provides the following functions:
all_to_all
—generates a projection of synapses connecting each neuron in the presynaptic population to each neuron in the postsynaptic population.one_to_one
—generates a projection of synapses connecting neurons of the presynaptic and postsynaptic populations in a one-to-one relationship. from_container
—generates a projection of synapses from a container containing synapse attributes and presynaptic and postsynaptic neuron indices.from_map
—generates a projection of synapses from a std::map
object containing synapse attributes as value and presynaptic and postsynaptic neuron indices as key.fixed_probability
—generates a projection of the synapses connecting each neuron in the presynaptic population to each neuron in the postsynaptic population. Synapses are generated with a given probability.index_based
—generates a projection of synapses connecting neurons in the population if the synapse generation function returns a non-zero std::optional
value. The indices of the presynaptic and postsynaptic neurons are passed to the synapse generation function. fixed_number_post
—generates a projection of synapses connecting each neuron in the presynaptic population to a given number of random neurons in the postsynaptic population.fixed_number_pre
—generates a projection of synapses connecting each neuron in the postsynaptic population to a given number of random neurons in the presynaptic population.clone_projection
—generates a projection whose synapses are copied from another projection. The original and created projections can be of different types. synapse_generators namespace
The synapse_generators
namespace implements functions and interfaces for generating synapses. The namespace provides the following functions and interfaces:
all_to_all
function, which generates synapses between each neuron in the presynaptic population and each neuron in the postsynaptic population.one_to_one
function, which generates one-to-one synapses between neurons in the presynaptic and postsynaptic populations. from_container
function, which generates synapses from a container containing synapse attributes and presynaptic and postsynaptic neuron indices.FromMap
class, which generates synapses from an std::map
or std::unordered_map
object containing synapse attributes as the value and presynaptic and postsynaptic neuron indices as the key.FixedProbability
class, which generates synapses between each neuron in the presynaptic population and each neuron in the postsynaptic population. Synapses are generated with a given probability.index_based
function, which generates synapses connecting neurons in the populations if the synapse generation function returns a non-zero std::optional
value. The indices of the presynaptic and postsynaptic neurons are passed to the synapse generation function. FixedNumberPost
class, which generates synapses between each neuron in the presynaptic population and a specified number of random neurons in the postsynaptic population.FixedNumberPre
class, which generates synapses between each neuron in the postsynaptic population and a specified number of random neurons in the presynaptic population.Clone_projection
function, which generates synapses whose attributes are copied from another synapse. The original and newly created synapses can have different types. parameters_generators namespaces
The namespace implements the default_synapse_gen
function and the CopySynapseGen
class. The default_synapse_gen
function generates a synapse with the default attribute values. The CopySynapseGen
class implements a synapse generator that copies attributes from a given synapse.