Skip to main content

occupied_bandwidth

Function occupied_bandwidth 

Source
pub fn occupied_bandwidth(
    frequency: &[f64],
    magnitude: &[f64],
    low: f64,
    high: f64,
    fraction: f64,
) -> Option<(f64, f64, f64)>
Expand description

The narrowest span of the band holding fraction of its energy.

Answers (lower, upper, bandwidth) in Hz, where the bandwidth includes the width of the bins at both ends. Unlike rolloff, which always starts at the bottom, this slides a window: a signal sitting high in the band is measured where it is.