Skip to main content

place_field_detection

Function place_field_detection 

Source
pub fn place_field_detection(
    binary_train: &[i32],
    positions: &[f64],
    n_bins: usize,
    threshold_std: f64,
    dt: f64,
) -> Vec<(f64, f64)>
Expand description

Detect place fields as contiguous bins with rate > mean + threshold_std * std. O’Keefe & Dostrovsky 1971.

Returns list of (field_start_pos, field_end_pos).