⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iir_resp.h

📁 digital filter designer s handbook header files
💻 H
字号:
//
//  File = iir_resp.h
//

#ifndef _IIR_RESP_H_
#define _IIR_RESP_H_

#include "iir_dsgn.h"
#include "d_cmplx.h"

class IirFilterResponse
{
public:

  //-------------------------------------------------
  // constructor with all configuration parameters 
  // passed as input arguments

  IirFilterResponse( IirFilterDesign *filter_design,
                     int num_resp_pts,
                     int db_scale_enabled,
                     int normalize_enabled,
                     char* resp_file_name );
  
  //--------------------------------------------------
  //  alternate constructor with configuration 
  //  parameters obtained interactively through 
  //  streams uin and uout
                     
  IirFilterResponse( IirFilterDesign *filter_design,
                     istream& uin,
                     ostream& uout );
  
  //--------------------------------------
  // method to compute frequency response
  // from the data set up by constructor
  
  virtual void ComputeResponse( void );
  
  //---------------------------------------
  // method to normalize magnitude response
  
  void NormalizeResponse( void );
  
  //-----------------------------
  // method that returns pointer
  // to an array that holds the
  // completed magnitude response
  // (ordinates only)
                         
  double* GetMagResp( void);
  
  //------------------------------------
  // method that outputs magnitude
  // response to the stream 
  // pointed-to by Response_File
  // (ordinates and normalized abscissae
  
  void DumpMagResp( void );

  double GetIntervalPeak(int beg_indx, int end_indx);
  
  
protected:

  IirFilterDesign *Filter_Design;
  int Num_Resp_Pts;
  int Db_Scale_Enabled;
  int Normalize_Enabled;
  ofstream *Response_File;
  int Num_Numer_Coeffs; 
  int Num_Denom_Coeffs; 
  double_complex* Freq_Resp;
  double* Mag_Resp;
  double* Phase_Resp;
  
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -