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

📄 dec4hpfilter3.h

📁 各种工程计算的库函数
💻 H
字号:
/*    Decimation filter for rate 4    Copyright (C) 2001 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*/#ifdef _MSC_VER#pragma warning(disable:4305)#endifstatic const long lDec4hpFilterLen = 165l;static const float fDec4hpFilterGain =  1.0f;static const float fpDec4hpFilterCoeffs[] = {    -1.92071398797553E-6,    2.03604539155559E-6,    -7.34228803933825E-21,    -4.4355653352385E-6,    9.60398603110586E-6,    -1.20049596292216E-5,    7.8486926239531E-6,    4.32905040198371E-6,    -2.13222647062588E-5,    3.49399023297179E-5,    -3.48737585075291E-5,    1.42799957024312E-5,    2.4351509900292E-5,    -6.66201935045862E-5,    8.98415580662666E-5,    -7.30727960546492E-5,    9.93561485809359E-6,    8.23034135645121E-5,    -0.000163976780755642,    0.000187366693090648,    -0.000120331247643089,    -3.10851726227946E-5,    0.000213918708113445,    -0.000342398754338789,    0.000333888297684442,    -0.000153432160355243,    -0.000154591146215665,    0.000468034142566449,    -0.000629655614771379,    0.000519022990541535,    -0.000123420167781229,    -0.000429269041216462,    0.000901724846079232,    -0.00104131996053241,    0.000703483549093644,    5.18731713526269E-5,    -0.000945507787523001,    0.00157045415730703,    -0.00156640325495687,    0.000806735419464004,    0.000492280333268303,    -0.00180956022590389,    0.00251423237395881,    -0.00215147739008029,    0.000695993219946426,    0.00135669704257282,    -0.00313480986591848,    0.00374242219424362,    -0.00268500747014638,    0.000175703357882111,    0.00284528408119287,    -0.00503552176507783,    0.00522104396996773,    -0.00298095154162514,    -0.00102982191994516,    0.00521455640873832,    -0.00763475535313134,    0.00686669439667706,    -0.00275213361583507,    -0.00332493533743678,    0.00883813265245085,    -0.0111135577148935,    0.0085502096648898,    -0.0015372036830175,    -0.00740070205384166,    0.0144152960226015,    -0.0158840907910735,    0.0101110761901953,    0.00156070735666523,    -0.0148131856941935,    0.0237531821879442,    -0.0232531116146487,    0.0113808246881241,    0.0090863435765579,    -0.0308211947790649,    0.0439518721830242,    -0.0393675997991685,    0.012211023313723,    0.035737446838171,    -0.0957701327543418,    0.154336819259236,    -0.196927759630999,    0.212497225959962,    -0.196927759630999,    0.154336819259236,    -0.0957701327543418,    0.035737446838171,    0.012211023313723,    -0.0393675997991685,    0.0439518721830242,    -0.0308211947790649,    0.0090863435765579,    0.0113808246881241,    -0.0232531116146487,    0.0237531821879442,    -0.0148131856941935,    0.00156070735666523,    0.0101110761901953,    -0.0158840907910735,    0.0144152960226015,    -0.00740070205384166,    -0.0015372036830175,    0.0085502096648898,    -0.0111135577148935,    0.00883813265245085,    -0.00332493533743678,    -0.00275213361583507,    0.00686669439667706,    -0.00763475535313134,    0.00521455640873832,    -0.00102982191994516,    -0.00298095154162514,    0.00522104396996773,    -0.00503552176507783,    0.00284528408119287,    0.000175703357882111,    -0.00268500747014638,    0.00374242219424362,    -0.00313480986591848,    0.00135669704257282,    0.000695993219946426,    -0.00215147739008029,    0.00251423237395881,    -0.00180956022590389,    0.000492280333268303,    0.000806735419464004,    -0.00156640325495687,    0.00157045415730703,    -0.000945507787523001,    5.18731713526269E-5,    0.000703483549093644,    -0.00104131996053241,    0.000901724846079232,    -0.000429269041216462,    -0.000123420167781229,    0.000519022990541535,    -0.000629655614771379,    0.000468034142566449,    -0.000154591146215665,    -0.000153432160355243,    0.000333888297684442,    -0.000342398754338789,    0.000213918708113445,    -3.10851726227946E-5,    -0.000120331247643089,    0.000187366693090648,    -0.000163976780755642,    8.23034135645121E-5,    9.93561485809359E-6,    -7.30727960546492E-5,    8.98415580662666E-5,    -6.66201935045862E-5,    2.4351509900292E-5,    1.42799957024312E-5,    -3.48737585075291E-5,    3.49399023297179E-5,    -2.13222647062588E-5,    4.32905040198371E-6,    7.8486926239531E-6,    -1.20049596292216E-5,    9.60398603110586E-6,    -4.4355653352385E-6,    -7.34228803933825E-21,    2.03604539155559E-6,    -1.92071398797553E-6};static const double dDec4hpFilterGain =  1.0;static const double dpDec4hpFilterCoeffs[] = {    -1.92071398797553E-6,    2.03604539155559E-6,    -7.34228803933825E-21,    -4.4355653352385E-6,    9.60398603110586E-6,    -1.20049596292216E-5,    7.8486926239531E-6,    4.32905040198371E-6,    -2.13222647062588E-5,    3.49399023297179E-5,    -3.48737585075291E-5,    1.42799957024312E-5,    2.4351509900292E-5,    -6.66201935045862E-5,    8.98415580662666E-5,    -7.30727960546492E-5,    9.93561485809359E-6,    8.23034135645121E-5,    -0.000163976780755642,    0.000187366693090648,    -0.000120331247643089,    -3.10851726227946E-5,    0.000213918708113445,    -0.000342398754338789,    0.000333888297684442,    -0.000153432160355243,    -0.000154591146215665,    0.000468034142566449,    -0.000629655614771379,    0.000519022990541535,    -0.000123420167781229,    -0.000429269041216462,    0.000901724846079232,    -0.00104131996053241,    0.000703483549093644,    5.18731713526269E-5,    -0.000945507787523001,    0.00157045415730703,    -0.00156640325495687,    0.000806735419464004,    0.000492280333268303,    -0.00180956022590389,    0.00251423237395881,    -0.00215147739008029,    0.000695993219946426,    0.00135669704257282,    -0.00313480986591848,    0.00374242219424362,    -0.00268500747014638,    0.000175703357882111,    0.00284528408119287,    -0.00503552176507783,    0.00522104396996773,    -0.00298095154162514,    -0.00102982191994516,    0.00521455640873832,    -0.00763475535313134,    0.00686669439667706,    -0.00275213361583507,    -0.00332493533743678,    0.00883813265245085,    -0.0111135577148935,    0.0085502096648898,    -0.0015372036830175,    -0.00740070205384166,    0.0144152960226015,    -0.0158840907910735,    0.0101110761901953,    0.00156070735666523,    -0.0148131856941935,    0.0237531821879442,    -0.0232531116146487,    0.0113808246881241,    0.0090863435765579,    -0.0308211947790649,    0.0439518721830242,    -0.0393675997991685,    0.012211023313723,    0.035737446838171,    -0.0957701327543418,    0.154336819259236,    -0.196927759630999,    0.212497225959962,    -0.196927759630999,    0.154336819259236,    -0.0957701327543418,    0.035737446838171,    0.012211023313723,    -0.0393675997991685,    0.0439518721830242,    -0.0308211947790649,    0.0090863435765579,    0.0113808246881241,    -0.0232531116146487,    0.0237531821879442,    -0.0148131856941935,    0.00156070735666523,    0.0101110761901953,    -0.0158840907910735,    0.0144152960226015,    -0.00740070205384166,    -0.0015372036830175,    0.0085502096648898,    -0.0111135577148935,    0.00883813265245085,    -0.00332493533743678,    -0.00275213361583507,    0.00686669439667706,    -0.00763475535313134,    0.00521455640873832,    -0.00102982191994516,    -0.00298095154162514,    0.00522104396996773,    -0.00503552176507783,    0.00284528408119287,    0.000175703357882111,    -0.00268500747014638,    0.00374242219424362,    -0.00313480986591848,    0.00135669704257282,    0.000695993219946426,    -0.00215147739008029,    0.00251423237395881,    -0.00180956022590389,    0.000492280333268303,    0.000806735419464004,    -0.00156640325495687,    0.00157045415730703,    -0.000945507787523001,    5.18731713526269E-5,    0.000703483549093644,    -0.00104131996053241,    0.000901724846079232,    -0.000429269041216462,    -0.000123420167781229,    0.000519022990541535,    -0.000629655614771379,    0.000468034142566449,    -0.000154591146215665,    -0.000153432160355243,    0.000333888297684442,    -0.000342398754338789,    0.000213918708113445,    -3.10851726227946E-5,    -0.000120331247643089,    0.000187366693090648,    -0.000163976780755642,    8.23034135645121E-5,    9.93561485809359E-6,    -7.30727960546492E-5,    8.98415580662666E-5,    -6.66201935045862E-5,    2.4351509900292E-5,    1.42799957024312E-5,    -3.48737585075291E-5,    3.49399023297179E-5,    -2.13222647062588E-5,    4.32905040198371E-6,    7.8486926239531E-6,    -1.20049596292216E-5,    9.60398603110586E-6,    -4.4355653352385E-6,    -7.34228803933825E-21,    2.03604539155559E-6,    -1.92071398797553E-6};

⌨️ 快捷键说明

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