brainpy.connect.ProbDist#

class brainpy.connect.ProbDist(dist=1, prob=1.0, pre_ratio=1.0, seed=None, include_self=True)[source]#

Connection with a maximum distance under a probability p.

New in version 2.1.13.

Parameters
  • dist (float, int) – The maximum distance between two points.

  • prob (float) – The connection probability, within 0. and 1.

  • pre_ratio (float) – The ratio of pre-synaptic neurons to connect.

  • seed (optional, int) – The random seed.

  • include_self (bool) – Whether include the point at the same position.

__init__(dist=1, prob=1.0, pre_ratio=1.0, seed=None, include_self=True)[source]#

Methods

__init__([dist, prob, pre_ratio, seed, ...])

build_conn()

build connections with certain data type.

check(structures)

make_returns(structures, conn_data[, csr, ...])

Make the desired synaptic structures and return them.

require(*structures)

requires(*structures)