pub fn functional_connectivity(
trains: &[&[i32]],
max_lag_ms: f64,
dt: f64,
) -> Vec<f64>Expand description
Functional connectivity matrix from peak cross-correlation. Returns n×n matrix (flat, row-major) where (i,j) = max |cc| between neurons i and j.