FrqRespDrawer class to draw frequency response for digital filter. ディジタルフィルタの周波数特性を,周波数軸をログスケールで描画するための FrqRespDrawer クラス. このライブラリを登録した際のプログラム:「F746_FrequencyResponseDrawer_Demo」
Dependents: F746_SD_WavPlayer F746_SD_GraphicEqualizer_ren0620 F746_FrequencyResponseDrawer_Demo F746_SD_VarableFilter ... more
Diff: FrequancyResponseBase.hpp
- Revision:
- 0:0bc63b49e2a3
- Child:
- 1:19a32f6279e6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FrequancyResponseBase.hpp Sun May 01 14:00:06 2016 +0000 @@ -0,0 +1,30 @@ +//----------------------------------------------------------- +// FrequencyResponse class (abstract base class) +// Derived class of this class mest be used to give +// argument of FrqRespDrawer::DrawGraph() +// +// AbsH_z() must be overrided +// +// 2016/05/01, 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