ya kno it

Files at this revision

API Documentation at this revision

Comitter:
Thijs12va
Date:
Fri Oct 27 12:48:46 2017 +0000
Parent:
0:09ae59836ddc
Commit message:
changed omega

Changed in this revision

filter.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 09ae59836ddc -r db5970567c4d filter.cpp
--- a/filter.cpp	Wed Oct 25 12:35:24 2017 +0000
+++ b/filter.cpp	Fri Oct 27 12:48:46 2017 +0000
@@ -41,10 +41,10 @@
     xprev[2] = x;
     
     float y =   (pow(w,2)*x
-                + 2*w*xprev[1]
+                + 2*pow(w,2)*xprev[1]
                 + pow(w,2)*xprev[0]
-                + (2+sqrt(2.0f)*w-2*pow(w,2))*yprev[1]
-                - (1+pow(w,2))*yprev[0]
+                + (2-2*pow(w,2))*yprev[1]
+                - (1-sqrt(2.0f)*w+pow(w,2))*yprev[0]
                 )
                 /(1+sqrt(2.0f)*w+pow(w,2));