pyeeg.simulate.WilsonCowan.simulate

WilsonCowan.simulate(x0=None, tmax=1.0, noise=0.0, P=None)

Simulate the model and return its states and readout.

Parameters:
  • x0 (array_like, optional) – The initial state. Shape (2,). Defaults to zeros.

  • tmax (float) – The duration of the simulation in seconds.

  • noise (float) – The standard deviation of the additive noise.

  • P (float or array_like, optional) – The external input to the excitatory population. A scalar is applied at every step, an array of shape (n,) is indexed per step. If None, the constant input set at construction is used.

Returns:

  • states (ndarray) – The simulated states. Shape (n, 2).

  • outputs (ndarray) – The simulated scalar readouts. Shape (n, 1).