GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6b7ca1
)
Added phase comment to goertzel
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Thu, 19 Jul 2018 15:12:28 +0000
(17:12 +0200)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Thu, 19 Jul 2018 15:12:28 +0000
(17:12 +0200)
c/goertzel/goertzel.c
patch
|
blob
|
blame
|
history
diff --git
a/c/goertzel/goertzel.c
b/c/goertzel/goertzel.c
index d13a874d9612379d94ca4e07c7de72da16ea7294..85637ae43652097beb365abc5f943cdc8dc8a904 100644
(file)
--- 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;
}
This page took
0.158652 seconds
and
4
git commands to generate.