boting ren / Mbed 2 deprecated F746_SD_GraphicEqualizer_ren0620

Dependencies:   BSP_DISCO_F746NG F746_GUI F746_SAI_IO FrequencyResponseDrawer LCD_DISCO_F746NG SDFileSystem_Warning_Fixed TS_DISCO_F746NG mbed

Fork of F746_SD_GraphicEqualizer by 不韋 呂

Revision:
0:e953eb392151
diff -r 000000000000 -r e953eb392151 MyClasses_Functions/FrequancyResponseBase.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MyClasses_Functions/FrequancyResponseBase.hpp	Wed Apr 27 13:56:39 2016 +0000
@@ -0,0 +1,27 @@
+//------------------------------------------------------
+//  FrqRespDrawer クラスで周波数特性を描画する際に使う
+//  周波数応答に対応するクラスの抽象基底クラス
+//
+//  2016/04/27, Copyright (c) 2016 MIKAMI, Naoki
+//------------------------------------------------------
+
+#ifndef FREQUENCY_RESPONSE_BASE_HPP
+#define FREQUENCY_RESPONSE_BASE_HPP
+
+#include <complex>  // requisite for complex
+
+namespace Mikami
+{
+    typedef complex<float> Complex; // define "Complex"
+
+    class FrequencyResponse
+    {
+    public:
+        // 周波数応答の絶対値を返す関数, 引数: z^(-1)
+        virtual float AbsH_z(Complex u) = 0;
+
+    protected:
+        FrequencyResponse() {}
+    };
+}
+#endif  // F746_FREQUENCY_RESPONSE_BASE_HPP