pub fn simulate(
s1: f64,
s2: f64,
tau_s: f64,
gamma: f64,
j_n: f64,
j_cross: f64,
i_0: f64,
sigma: f64,
dt: f64,
stim1: &[f64],
stim2: &[f64],
xi: &[f64],
s1_out: &mut [f64],
s2_out: &mut [f64],
r1_out: &mut [f64],
r2_out: &mut [f64],
) -> (f64, f64)Expand description
Simulate n_steps Wong-Wang iterations; write per-step state +
firing-rate traces. xi must be length 2 * n_steps (two noise
samples per step, consumed in i1, i2 order).