Skip to main content

goertzel_power

Function goertzel_power 

Source
pub fn goertzel_power(x: &[f64], k: f64) -> Result<f64, ErrorsJSL>
Expand description

|X(k)|² at bin k without the final complex rotation: s_{N−1}² + s_{N−2}² − 2cos(ω) s_{N−1} s_{N−2}.