Added phase comment to goertzel
[mirrors/Programs.git] / c / goertzel / goertzel.c
index d13a874d9612379d94ca4e07c7de72da16ea7294..85637ae43652097beb365abc5f943cdc8dc8a904 100644 (file)
@@ -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;
 }
 
This page took 0.11374 seconds and 4 git commands to generate.