diff tests/TestWindow.cpp @ 157:152abaf17c62

Add Blackman-Harris window
author Chris Cannam
date Fri, 01 Nov 2013 15:31:57 +0000
parents 7669b3aa3bc9
children 2de6184b2ce0
line wrap: on
line diff
--- a/tests/TestWindow.cpp	Fri Nov 01 12:07:08 2013 +0000
+++ b/tests/TestWindow.cpp	Fri Nov 01 15:31:57 2013 +0000
@@ -119,6 +119,18 @@
     };
     testWindow<10>(BlackmanWindow, e10);
 }
+    
+BOOST_AUTO_TEST_CASE(blackmanHarris)
+{
+    double e1[] = { 1 };
+    testWindow<1>(BlackmanHarrisWindow, e1);
+
+    double e10[] = {
+        0.0001, 0.0110, 0.1030, 0.3859, 0.7938,
+        1.0000, 0.7938, 0.3859, 0.1030, 0.0110,
+    };
+    testWindow<10>(BlackmanHarrisWindow, e10);
+}
 
 BOOST_AUTO_TEST_CASE(kaiser_4_10)
 {