Skip to main content

band_energy

Function band_energy 

Source
pub fn band_energy(
    frequency: &[f64],
    magnitude: &[f64],
    low: f64,
    high: f64,
) -> f64
Expand description

The energy of one band, by Parseval: Σ |X|² · df.

The band is inclusive at both ends. A band holding no bin has no energy.