pub fn power_spectrum(binary_train: &[i32], dt: f64) -> (Vec<f64>, Vec<f64>)Expand description
Power spectral density of a binary spike train.
Returns (psd, freqs_hz) where psd[k] = |FFT[k]|^2 / n and
freqs_hz are the corresponding one-sided frequency bins.