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:
e69402f
)
changed q1 and q2 according to the paper of P. Sysel and P. Rajmic
author
Frank Mutter
<frank@fradcode.de>
Fri, 13 Jul 2018 17:19:06 +0000
(19:19 +0200)
committer
Frank Mutter
<frank@fradcode.de>
Fri, 13 Jul 2018 17:19:06 +0000
(19:19 +0200)
c/goertzel/goertzel.c
patch
|
blob
|
blame
|
history
diff --git
a/c/goertzel/goertzel.c
b/c/goertzel/goertzel.c
index 2cde63bfe2a015ef2ec398c99c3d69a1f958b3d5..19bfdf56eec479d9e372c6f1d3067241b0384fa2 100644
(file)
--- a/
c/goertzel/goertzel.c
+++ b/
c/goertzel/goertzel.c
@@
-29,8
+29,8
@@
float goertzel_mag(int numSamples,float TARGET_FREQUENCY,int SAMPLING_RATE, floa
// calculate the real and imaginary results
// scaling appropriately
- real = (q
1 - q2
* cosine) / scalingFactor;
- imag = (q
2
* sine) / scalingFactor;
+ real = (q
2 - q1
* cosine) / scalingFactor;
+ imag = (q
1
* sine) / scalingFactor;
magnitude = sqrtf(real*real + imag*imag);
return magnitude;
This page took
0.307302 seconds
and
4
git commands to generate.