不韋 呂 / FrequencyResponseDrawer

Dependents:   F746_SD_WavPlayer F746_SD_GraphicEqualizer_ren0620 F746_FrequencyResponseDrawer_Demo F746_SD_VarableFilter ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FrequancyResponseBase.hpp Source File

FrequancyResponseBase.hpp

00001 //-----------------------------------------------------------
00002 //  周波数応答を定義するクラスの基底クラスとして使う抽象クラス   
00003 //      周波数特性を描画するために与える周波数応答は,FrqRespDrawer
00004 //      クラスのメンバ関数 DrawGraph() の第一引数で与える.
00005 //      その周波数応答は,このクラスを継承する派生クラスで,純粋仮想 
00006 //      関数 AbsH_z() をオーバーライドする関数として定義すること.
00007 //
00008 //  FrequencyResponse class (abstract base class)
00009 //      Derived class of this class must be used to give
00010 //      the first argument of FrqRespDrawer::DrawGraph().
00011 //      AbsH_z() must be overrided in the derived class
00012 //
00013 //  2016/11/08, Copyright (c) 2016 MIKAMI, Naoki
00014 //-----------------------------------------------------------
00015 
00016 #ifndef FREQUENCY_RESPONSE_BASE_HPP
00017 #define FREQUENCY_RESPONSE_BASE_HPP
00018 
00019 #include <complex>  // requisite for complex
00020 
00021 namespace Mikami
00022 {
00023     typedef complex<float> Complex; // define "Complex"
00024 
00025     class FrequencyResponse
00026     {
00027     public:
00028         // 周波数応答の絶対値を返す関数, 引数: z^(-1)
00029         virtual float AbsH_z(Complex u) = 0;
00030     };
00031 }
00032 #endif  // F746_FREQUENCY_RESPONSE_BASE_HPP