nest::ConnectLayers - connect two layer
sourcelayer targetlayer connection_dict
ConnectLayers -> -
Connects nodes in two topological layers.
The parameters set in the input dictionary decides the nature
of the connection pattern being created. Please see parameter
list below for a detailed description of these variables.
The connections are created by iterating through either the
source or the target layer, consecutively connecting each node
to a region in the opposing layer.
model* literal
lid^ integer
*modeltype (i.e. /iaf_psc_alpha) of nodes that should be connected to
in the layer. All nodes are used if this variable isn't set.
^Nesting depth of nodes that should be connected to. All layers are used
if this variable isn't set.
Parameter name: target
Type: dictionary
Parameter description:
See description for source dictionary.
Parameter name: number_of_connections
Type: integer
Parameter description:
Maximum number of connections that each iterating node is allowed.
The actual connections being created are picked at random from all
the candidate connections.
Parameter name: synapse_model
Type: literal
Parameter description:
The synapse model to be used for creating the connection.
.
Parameter name: allow_autapses
Type: bool
Parameter description: Used together with the number_of_connections option to
indicate if autapses are allowed.
Parameter name: allow_multapses
Type: bool
Parameter description: Used together with the number_of_connections option to
indicate if multapses are allowed.
------------------------------------------------------------------
Example:
%Create source layer with CreateLayer
<< /rows 15
/columns 43
/extent [1.0 2.0]
/elements /iaf_psc_alpha
>> /src_dictionary Set
src_dictionary CreateLayer /src Set
%Create target layer with CreateLayer
%%Create layer
<< /rows 34
/columns 71
/extent [3.0 1.0]
/elements /iaf_psc_alpha
>> /tgt_dictionary Set
tgt_dictionary CreateLayer /tgt Set
<< /connection_type (convergent)
/mask << /grid << /rows 2 /columns 3 >>
/anchor << /row 4 /column 2 >> >>
/weight 2.3
/delay [2.3 1.2 3.2 1.3 2.3 1.2]
/kernel << /gaussian << /sigma 1.2 /p_center 1.41 >> >>
/synapse_model /stdp_synapse
>> /parameters Set
src tgt parameters ConnectLayers
HAVE_LIBNEUROSIM */
HÃ¥kon Enger, Kittel Austvoll
/usr/src/packages/BUILD/nestkernel/nestmodule.cpp