brainpy.connect.grid_four#

brainpy.connect.grid_four = GridFour(include_self=False, periodic_boundary=False)#

The nearest four neighbors connection method.

Parameters
  • periodic_boundary (bool) – Whether the neuron encode the value space with the periodic boundary. .. versionadded:: 2.2.3.2

  • include_self (bool) – Whether create connection at the same position.