pub fn goertzel_power(x: &[f64], k: f64) -> Result<f64, ErrorsJSL>
|X(k)|² at bin k without the final complex rotation: s_{N−1}² + s_{N−2}² − 2cos(ω) s_{N−1} s_{N−2}.
|X(k)|²
k
s_{N−1}² + s_{N−2}² − 2cos(ω) s_{N−1} s_{N−2}