There was an error while loading. Please reload this page.
Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
/imagine
[dependencies] neuromod = "0.5.0" # optional: neuromod = { version = "0.5.0", features = ["sentry"] }
cargo test cargo run --example basic cargo run --example rstdp_demo
use neuromod::{NeuroModulators, SpikingNetwork}; let mut network = SpikingNetwork::new(); // 16 LIF, 5 Izhikevich, 16 channels let stimuli = [0.5_f32; 16]; let modulators = NeuroModulators::default(); let spikes = network.step(&stimuli, &modulators).unwrap(); // indices that fired
let mut network = SpikingNetwork::with_dimensions(518, 5, 518); let stimuli = vec![0.25_f32; 518]; let spikes = network.step(&stimuli, &NeuroModulators::default()).unwrap();
step requires stimuli.len() == num_channels or returns StepError::InputLenMismatch { expected, got }.
step
stimuli.len() == num_channels
StepError::InputLenMismatch { expected, got }
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
67c1573