Skip to main content

py_wilson_cowan_simulate

Function py_wilson_cowan_simulate 

Source
pub(crate) fn py_wilson_cowan_simulate<'py>(
    py: Python<'py>,
    e_init: f64,
    i_init: f64,
    w_ee: f64,
    w_ei: f64,
    w_ie: f64,
    w_ii: f64,
    tau_e: f64,
    tau_i: f64,
    a: f64,
    theta: f64,
    dt: f64,
    ext_input: PyReadonlyArray1<'py, f64>,
) -> PyResult<Py<PyAny>>
Expand description

Simulate a single Wilson-Cowan E/I unit for ext_input.len() steps and return per-step e, i traces plus final scalars.

Returns a dict with keys: e, i (1-D float64 arrays of length n_steps) + the final scalars e_final, i_final.