Skip to content

SpikingNetwork

Raul Montoya Cardenas edited this page Aug 8, 2026 · 5 revisions

SpikingNetwork

Wiki hero

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)

Module: src/engine.rs

The engine integrates LIF + Izhikevich banks only; other neuron models are standalone types (see Neuron Models).

Construction

SpikingNetwork::new()  // 16 LIF, 5 Izh, NUM_INPUT_CHANNELS (16)
SpikingNetwork::with_dimensions(num_lif, num_izh, num_channels)

Step

pub fn step(
    &mut self,
    stimuli: &[f32],
    modulators: &NeuroModulators,
) -> Result<Vec<usize>, StepError>

| Success | Ok(indices) of neurons that spiked this step | | Error | StepError::InputLenMismatch { expected, got } |

Accessors

  • get_membrane_potentials() / get_thresholds()
  • reset()

Constants

  • NUM_INPUT_CHANNELS = 16 (default channel count)
  • Internal WEIGHT_BUDGET for per-neuron weight normalization

Public re-exports: SpikingNetwork, StepError from neuromod::engine via crate root.

Related


Last updated: August 8, 2026 Updated by: Grok Build: Grok 4.5 (high) Package tip reference: e59faf1 (main @ 0.5.1 + #91; tag v0.5.1 = 37b0625) Cubic: page-intro Devin DeepWiki: neuromod @ e59faf1

Clone this wiki locally