A simple biquad filter

Dependents:   emgfilter includeair includeair Encodertest ... more

Files at this revision

API Documentation at this revision

Comitter:
Gerth
Date:
Thu Oct 29 14:03:02 2015 +0000
Parent:
1:11e0eb82cb18
Commit message:
converted floats to doubles

Changed in this revision

Biquad.h Show annotated file Show diff for this revision Revisions of this file
diff -r 11e0eb82cb18 -r 3a80d1f8f30a Biquad.h
--- a/Biquad.h	Fri Oct 09 12:42:32 2015 +0000
+++ b/Biquad.h	Thu Oct 29 14:03:02 2015 +0000
@@ -10,15 +10,15 @@
     Biquad(void);
 
     /**Filters the given signal with the filter values.
-    * @param u : float signal to filter
-    * @param &v1 : float variable to store previous values
-    * @param &v2 : float variable to store previous values
-    * @param a1 : float filter coefficient a1
-    * @param a1 : float filter coefficient a2
-    * @param a1 : float filter coefficient b0
-    * @param a1 : float filter coefficient b1
-    * @param a1 : float filter coefficient b2
-    * @return v : float filtered signal
+    * @param u : double signal to filter
+    * @param &v1 : double variable to store previous values
+    * @param &v2 : double variable to store previous values
+    * @param a1 : double filter coefficient a1
+    * @param a1 : double filter coefficient a2
+    * @param a1 : double filter coefficient b0
+    * @param a1 : double filter coefficient b1
+    * @param a1 : double filter coefficient b2
+    * @return v : double filtered signal
     */
     double filter( double u, double &v1, double &v2, const double a1, const double a2,
                    const double b0, const double b1, const double b2 );