pub(crate) fn py_fitzhugh_rinzel_simulate<'py>(
py: Python<'py>,
v0: f64,
w0: f64,
y0: f64,
a: f64,
b: f64,
c: f64,
d: f64,
delta: f64,
mu: f64,
dt: f64,
v_threshold: f64,
n_steps: usize,
current: f64,
) -> (Bound<'py, PyArray1<f64>>, i64, f64, f64, f64)Expand description
Parity contract with
sc_neurocore.neurons.models.fitzhugh_rinzel.FitzHughRinzelNeuron.simulate:
for the same parameters and constant input the returned v trace, upward-
crossing spike count, and final (v, w, y) state are bit-identical to the
Python RK4 reference (the right-hand side is exact arithmetic — v.powi(3)
= v*v*v, additions and multiplications, no transcendental functions).