不韋 呂 / Mbed 2 deprecated F746_FrequencyResponseDrawer_Demo

Dependencies:   BSP_DISCO_F746NG F746_GUI FrequencyResponseDrawer LCD_DISCO_F746NG TS_DISCO_F746NG mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Diff_FrqResp.hpp Source File

Diff_FrqResp.hpp

00001 //-----------------------------------------------------------
00002 //  Frequency response for differentiator
00003 //
00004 //  2016/04/17, Copyright (c) 2016 MIKAMI, Naoki
00005 //-----------------------------------------------------------
00006 
00007 #ifndef DIFF_FREQUENCY_RESPONSE_HPP
00008 #define DIFF_FREQUENCY_RESPONSE_HPP
00009 
00010 #include "FrequancyResponseBase.hpp"
00011 
00012 namespace Mikami
00013 {
00014     class Diff_FrqResp : public FrequencyResponse
00015     {
00016     public:
00017         Diff_FrqResp() {}
00018 
00019         // 周波数応答の絶対値を返す関数, 引数: z^(-1)
00020         virtual float AbsH_z(Complex u)
00021         {   return abs(0.5f*(1.0f - u)); }
00022     };
00023 }
00024 #endif  // DIFF_FREQUENCY_RESPONSE_HPP