Skip to main content

magnitude

Function magnitude 

Source
pub fn magnitude(real: &[f64], imag: &[f64]) -> Vec<f64>
Expand description

The magnitude of each bin: hypot(real, imag).

Takes slices rather than a Spectrum on purpose — a caller whose spectrum lives in its own type passes its own two columns.