pub struct NeuromodNeuron {
pub v: f32,
pub v_rest: f32,
pub v_reset: f32,
pub leak: f32,
pub threshold: f32,
pub gain: f32,
pub weights: Vec<f32>,
pub last_spike: bool,
}Expand description
Neuromodulatory Integrative Fixed-threshold (NIF) neuron.
This is a router-internal integration primitive for ChannelRouter,
not a general-purpose neuron model — canonical neuron models (LIF,
Izhikevich, Hodgkin-Huxley, GIF, FitzHugh-Nagumo, Lapicque) live in the
separate neuromod crate, which synaptic-wiring intentionally does not
depend on. See the crate-level docs for the full boundary rationale.
$V_{t+1} = V_t + (G \cdot I_{syn}) - \lambda(V_t - V_{rest})$ where $G$ is the modulation gain and $\lambda$ is the leak rate.
Fields§
§v: f32Current membrane potential.
v_rest: f32Resting membrane potential.
v_reset: f32Reset potential after a spike.
leak: f32Passive leak rate per timestep.
threshold: f32Firing threshold.
gain: f32Neuromodulatory gain (scales incoming stimulus).
weights: Vec<f32>Synaptic weights — one per input channel.
last_spike: boolWhether the neuron fired in the last timestep.
Implementations§
Trait Implementations§
Source§impl Clone for NeuromodNeuron
impl Clone for NeuromodNeuron
Source§fn clone(&self) -> NeuromodNeuron
fn clone(&self) -> NeuromodNeuron
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more