Skip to main content

dominant_bin

Function dominant_bin 

Source
pub fn dominant_bin(mags: &[f64]) -> Option<(usize, f64)>
Expand description

The dominant tonal bin (skipping DC bin 0): (bin, magnitude), or None if there is no non-DC bin.