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

📄 numinteg.cpp

📁 Digital filter designer s handbook C++ code source
💻 CPP
字号:
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//  File = numinteg.cpp
//
//  simulation of analog all-pole filter
//

#include <math.h>
#include "numinteg.h"

//======================================================
//  constructor that initializes the integrator
//------------------------------------------------------

NumericInteg::NumericInteg( double delta_t )
{
 Delta_T = delta_t;
 Integ_Mem = 0.0;
 return;
};
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++      


//======================================================
//
//------------------------------------------------------

double NumericInteg::Integrate( double input )
{ 
Integ_Mem += (Delta_T * input);
return(Integ_Mem);
}

⌨️ 快捷键说明

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