Skip to main content

Module temporal

Module temporal 

Source

Functionsยง

burst_detection
Detect bursts: consecutive spikes with ISI < max_isi_ms. Returns Vec of (start_time_s, end_time_s, spike_count).
change_point_detection
CUSUM-based change point detection (Page 1954). Returns list of bin indices where significant rate changes occur.
first_spike_latency
Time to first spike (seconds). Returns NaN if no spike.
response_onset
Detect response onset as first bin exceeding baseline + threshold_sigma * std. Returns onset time (seconds), or NaN.