snnib.blender.network.Network._get_mean_outconnection

Network._get_mean_outconnection(pre_idx: int) ndarray[source]

returns vector describing the direction of mean outgoing connection from neuron pre_idx

  • returns random direction if no outgoing connections

Parameters
  • pre_idx
    • int

    • index of the neuron to compute the direction for

Raises

Returns
-direction
  • np.ndarray

  • mean direction of outgoing connections