Skip to content

SpikingNetwork

Raul Montoya Cardenas edited this page Jul 29, 2026 · 5 revisions

SpikingNetwork

Wiki hero

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

Module: src/engine.rs

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

Related


Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: 67c1573 (main, v0.5.0) Cubic: page-intro Devin DeepWiki: neuromod @ 67c1573

Clone this wiki locally