Skip to main content

parseval_check

Function parseval_check 

Source
pub fn parseval_check(xs: &[f64]) -> (f64, f64)
Expand description

Compute Parseval’s theorem check: sum of |x[n]|² == (1/N) sum |X[k]|².

Returns (time_energy, freq_energy). These should be approximately equal.