numinteg.cpp
来自「Digital filter designer s handbook C++ c」· C++ 代码 · 共 33 行
CPP
33 行
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// 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 + =
减小字号Ctrl + -
显示快捷键?