From: Tomas Mudrunka Date: Thu, 19 Jul 2018 15:12:28 +0000 (+0200) Subject: Added phase comment to goertzel X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=21e17c18fddc3d3c133244463f29a88d13722568;p=mirrors%2FPrograms.git Added phase comment to goertzel --- diff --git a/c/goertzel/goertzel.c b/c/goertzel/goertzel.c index d13a874..85637ae 100644 --- a/c/goertzel/goertzel.c +++ b/c/goertzel/goertzel.c @@ -33,6 +33,7 @@ float goertzel_mag(int numSamples,float TARGET_FREQUENCY,int SAMPLING_RATE, floa imag = (q1 * sine) / scalingFactor; magnitude = sqrtf(real*real + imag*imag); + //phase = atan(imag/real) return magnitude; }