Skip to main content

py_ibarz_tanaka_map_simulate

Function py_ibarz_tanaka_map_simulate 

Source
pub(crate) fn py_ibarz_tanaka_map_simulate<'py>(
    py: Python<'py>,
    x0: f64,
    y0: f64,
    alpha: f64,
    beta: f64,
    mu: f64,
    sigma: f64,
    x_threshold: f64,
    x_reset: f64,
    n_steps: usize,
    current: f64,
) -> (Bound<'py, PyArray1<f64>>, i64, f64, f64)
Expand description

Parity contract with sc_neurocore.neurons.models.ibarz_tanaka_map.IbarzTanakaMapNeuron.simulate: for the same parameters and constant input the returned x trace (already reset on spiking steps), spike count, and final (x, y) state are bit-identical to the Python reference (the map is exact floating-point arithmetic — one division, additions and multiplications, no transcendental functions).