spatial_to_spikes

Function spatial_to_spikes 

Source
pub fn spatial_to_spikes(
    data: &ArrayView2<'_, f64>,
    time_window: f64,
    max_rate: f64,
) -> SpatialResult<Vec<SpikeEvent>>
Expand description

Convert spatial data to spike events

Converts regular spatial data into spike events using rate coding, where higher values correspond to higher spike rates.