pyeeg.simulate.CTRNN.simulate

CTRNN.simulate(x0=None, tmax=1.0, noise=0.0, I=<function CTRNN.<lambda>>)

Simulate the CTRNN model and monitor the output.

Parameters:
  • x0 (array_like, optional) – The initial state of the system. Shape (N,). Defaults to zeros.

  • tmax (float) – The maximum time to simulate.

  • noise (float) – The standard deviation of the noise to add to the system.

  • I (callable) – The external input as a function of time, I(t), evaluated at every sample. Defaults to a constant zero input.

Returns:

  • O (ndarray) – The simulated readout. Shape (n, output_dim).

  • x (ndarray) – The simulated state. Shape (n, N).

  • o (ndarray) – The simulated node outputs (after the nonlinearity). Shape (n, N).