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

📄 dec2filter.h

📁 各种工程计算的库函数
💻 H
字号:
/*    Decimation filter for rate 2    Copyright (C) 1999-2000 Jussi Laako    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Digital filter designed by mkfilter/mkshape/gencode   A.J. Fisher    Command line: /www/usr/fisher/helpers/mkshape -c 2.2500000000e-01 5.0000000000e-02 129 -w -l*/#ifdef _MSC_VER#pragma warning(disable:4305)#endifstatic const long lDec2FilterLen = 129l;static const float fDec2FilterGain =  1.0f / 2.222249920e+00f;static const float fpDec2FilterCoeffs[] = {    +0.0000133517, +0.0000293482, -0.0000138416, -0.0000580725,    +0.0000000033, +0.0000946952, +0.0000372084, -0.0001337474,    -0.0001092498, +0.0001617753, +0.0002264770, -0.0001546436,    -0.0003919268, +0.0000775765, +0.0005933159, +0.0001104565,    -0.0007952279, -0.0004471786, +0.0009342324, +0.0009527200,    -0.0009199040, -0.0016126370, +0.0006441654, +0.0023617685,    -0.0000000270, -0.0030734973, -0.0010912270, +0.0035591632,    +0.0026476872, -0.0035814789, -0.0045947473, +0.0028837917,    +0.0067402051, -0.0012341753, -0.0087636834, -0.0015199016,    +0.0102263112, +0.0053935328, -0.0106039141, -0.0102120927,    +0.0093431243, +0.0155741176, -0.0059354230, -0.0208368712,    -0.0000000102, +0.0251277933, +0.0086368024, -0.0273779987,    -0.0198786145, +0.0263633715, +0.0333253959, -0.0207212147,    -0.0482776015, +0.0088739404, +0.0637820371, +0.0113078079,    -0.0787166304, -0.0436160748, +0.0919050170, +0.0974939795,    -0.1022465285, -0.2081511639, +0.1088439592, +0.6979290945,    +1.0000000783, +0.6979290945, +0.1088439592, -0.2081511639,    -0.1022465285, +0.0974939795, +0.0919050170, -0.0436160748,    -0.0787166304, +0.0113078079, +0.0637820371, +0.0088739404,    -0.0482776015, -0.0207212147, +0.0333253959, +0.0263633715,    -0.0198786145, -0.0273779987, +0.0086368024, +0.0251277933,    -0.0000000102, -0.0208368712, -0.0059354230, +0.0155741176,    +0.0093431243, -0.0102120927, -0.0106039141, +0.0053935328,    +0.0102263112, -0.0015199016, -0.0087636834, -0.0012341753,    +0.0067402051, +0.0028837917, -0.0045947473, -0.0035814789,    +0.0026476872, +0.0035591632, -0.0010912270, -0.0030734973,    -0.0000000270, +0.0023617685, +0.0006441654, -0.0016126370,    -0.0009199040, +0.0009527200, +0.0009342324, -0.0004471786,    -0.0007952279, +0.0001104565, +0.0005933159, +0.0000775765,    -0.0003919268, -0.0001546436, +0.0002264770, +0.0001617753,    -0.0001092498, -0.0001337474, +0.0000372084, +0.0000946952,    +0.0000000033, -0.0000580725, -0.0000138416, +0.0000293482,    +0.0000133517 };static const double dDec2FilterGain = 1.0 / 2.222249920e+00;static const double dpDec2FilterCoeffs[] = {    +0.0000133517, +0.0000293482, -0.0000138416, -0.0000580725,    +0.0000000033, +0.0000946952, +0.0000372084, -0.0001337474,    -0.0001092498, +0.0001617753, +0.0002264770, -0.0001546436,    -0.0003919268, +0.0000775765, +0.0005933159, +0.0001104565,    -0.0007952279, -0.0004471786, +0.0009342324, +0.0009527200,    -0.0009199040, -0.0016126370, +0.0006441654, +0.0023617685,    -0.0000000270, -0.0030734973, -0.0010912270, +0.0035591632,    +0.0026476872, -0.0035814789, -0.0045947473, +0.0028837917,    +0.0067402051, -0.0012341753, -0.0087636834, -0.0015199016,    +0.0102263112, +0.0053935328, -0.0106039141, -0.0102120927,    +0.0093431243, +0.0155741176, -0.0059354230, -0.0208368712,    -0.0000000102, +0.0251277933, +0.0086368024, -0.0273779987,    -0.0198786145, +0.0263633715, +0.0333253959, -0.0207212147,    -0.0482776015, +0.0088739404, +0.0637820371, +0.0113078079,    -0.0787166304, -0.0436160748, +0.0919050170, +0.0974939795,    -0.1022465285, -0.2081511639, +0.1088439592, +0.6979290945,    +1.0000000783, +0.6979290945, +0.1088439592, -0.2081511639,    -0.1022465285, +0.0974939795, +0.0919050170, -0.0436160748,    -0.0787166304, +0.0113078079, +0.0637820371, +0.0088739404,    -0.0482776015, -0.0207212147, +0.0333253959, +0.0263633715,    -0.0198786145, -0.0273779987, +0.0086368024, +0.0251277933,    -0.0000000102, -0.0208368712, -0.0059354230, +0.0155741176,    +0.0093431243, -0.0102120927, -0.0106039141, +0.0053935328,    +0.0102263112, -0.0015199016, -0.0087636834, -0.0012341753,    +0.0067402051, +0.0028837917, -0.0045947473, -0.0035814789,    +0.0026476872, +0.0035591632, -0.0010912270, -0.0030734973,    -0.0000000270, +0.0023617685, +0.0006441654, -0.0016126370,    -0.0009199040, +0.0009527200, +0.0009342324, -0.0004471786,    -0.0007952279, +0.0001104565, +0.0005933159, +0.0000775765,    -0.0003919268, -0.0001546436, +0.0002264770, +0.0001617753,    -0.0001092498, -0.0001337474, +0.0000372084, +0.0000946952,    +0.0000000033, -0.0000580725, -0.0000138416, +0.0000293482,    +0.0000133517 };

⌨️ 快捷键说明

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