Added phase comment to goertzel
authorTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Jul 2018 15:12:28 +0000 (17:12 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Jul 2018 15:12:28 +0000 (17:12 +0200)
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.158652 seconds and 4 git commands to generate.