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

📄 dec3hpfilter3.h

📁 各种工程计算的库函数
💻 H
字号:
/*    Decimation filter for rate 3    Copyright (C) 2002 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 lDec3hpFilterLen = 185l;static const float fDec3hpFilterGain = 1.0f;static const float fpDec3hpFilterCoeffs[] = {    -1.6744135951788E-6,    2.25564913853558E-6,    2.80437187253005E-20,    -4.6159728814049E-6,    7.3117087048762E-6,    -3.11755974315232E-6,    -7.62105312919144E-6,    1.63825317308268E-5,    -1.19954553615034E-5,    -7.76135611102017E-6,    2.90910592518865E-5,    -2.98609445619302E-5,    -1.29833877476296E-19,    4.24600895529503E-5,    -5.89097058820719E-5,    2.24539322701837E-5,    4.98253842156195E-5,    -9.8386632333776E-5,    6.6804568572632E-5,    4.03936587699073E-5,    -0.000142396808637311,    0.000138212720519623,    -1.90549839760961E-19,    -0.000178047948409349,    0.000236402503889069,    -8.64924749021988E-5,    -0.000184721338357759,    0.000351897102677188,    -0.000231006520894752,    -0.000135301804539218,    0.000462826688633192,    -0.000436597914315499,    -1.31634262523249E-18,    0.000533503948283232,    -0.000691207245110825,    0.000247049395922575,    0.00051597755364538,    -0.000962201509059481,    0.000618888396049153,    0.00035547290662345,    -0.00119341582668219,    0.00110576341133556,    8.01246032081147E-18,    -0.00130640285625865,    0.00166598646220205,    -0.000586476898089871,    -0.00120717990958296,    0.00221994774271686,    -0.00140889500349417,    -0.000798932759681302,    0.002649572539732,    -0.00242641755060079,    -4.74071821697122E-18,    0.00280495737910109,    -0.00354115594387684,    0.00123476358547362,    0.00251884237127389,    -0.00459311953705988,    0.00289217149157428,    0.0016281199573114,    -0.00536340496189594,    0.00488186757055627,    7.11475192555503E-18,    -0.00558606569168042,    0.00702356298443997,    -0.00244092616183204,    -0.00496681129234518,    0.00904197087688826,    -0.00568932405582452,    -0.00320362557803171,    0.0105680060876195,    -0.00964411103599802,    -9.40702177357093E-18,    0.0111390631891317,    -0.0141056070489869,    0.00494664819217201,    0.0101790013078303,    -0.0187869440802335,    0.012019699879788,    0.00690580957814338,    -0.023339553204812,    0.0219303511892057,    1.10798713690749E-17,    -0.0273900779734071,    0.0365579656214836,    -0.0136856452093744,    -0.0305838793111507,    0.0628100665160661,    -0.0463727526706215,    -0.0326288468458354,    0.151037725435059,    -0.2573757883086,    0.299995536282891,    -0.2573757883086,    0.151037725435059,    -0.0326288468458354,    -0.0463727526706215,    0.0628100665160661,    -0.0305838793111507,    -0.0136856452093744,    0.0365579656214836,    -0.0273900779734071,    1.10798713690749E-17,    0.0219303511892057,    -0.023339553204812,    0.00690580957814338,    0.012019699879788,    -0.0187869440802335,    0.0101790013078303,    0.00494664819217201,    -0.0141056070489869,    0.0111390631891317,    -9.40702177357093E-18,    -0.00964411103599802,    0.0105680060876195,    -0.00320362557803171,    -0.00568932405582452,    0.00904197087688826,    -0.00496681129234518,    -0.00244092616183204,    0.00702356298443997,    -0.00558606569168042,    7.11475192555503E-18,    0.00488186757055627,    -0.00536340496189594,    0.0016281199573114,    0.00289217149157428,    -0.00459311953705988,    0.00251884237127389,    0.00123476358547362,    -0.00354115594387684,    0.00280495737910109,    -4.74071821697122E-18,    -0.00242641755060079,    0.002649572539732,    -0.000798932759681302,    -0.00140889500349417,    0.00221994774271686,    -0.00120717990958296,    -0.000586476898089871,    0.00166598646220205,    -0.00130640285625865,    8.01246032081147E-18,    0.00110576341133556,    -0.00119341582668219,    0.00035547290662345,    0.000618888396049153,    -0.000962201509059481,    0.00051597755364538,    0.000247049395922575,    -0.000691207245110825,    0.000533503948283232,    -1.31634262523249E-18,    -0.000436597914315499,    0.000462826688633192,    -0.000135301804539218,    -0.000231006520894752,    0.000351897102677188,    -0.000184721338357759,    -8.64924749021988E-5,    0.000236402503889069,    -0.000178047948409349,    -1.90549839760961E-19,    0.000138212720519623,    -0.000142396808637311,    4.03936587699073E-5,    6.6804568572632E-5,    -9.8386632333776E-5,    4.98253842156195E-5,    2.24539322701837E-5,    -5.89097058820719E-5,    4.24600895529503E-5,    -1.29833877476296E-19,    -2.98609445619302E-5,    2.90910592518865E-5,    -7.76135611102017E-6,    -1.19954553615034E-5,    1.63825317308268E-5,    -7.62105312919144E-6,    -3.11755974315232E-6,    7.3117087048762E-6,    -4.6159728814049E-6,    2.80437187253005E-20,    2.25564913853558E-6,    -1.6744135951788E-6};static const double dDec3hpFilterGain = 1.0;static const double dpDec3hpFilterCoeffs[] = {    -1.6744135951788E-6,    2.25564913853558E-6,    2.80437187253005E-20,    -4.6159728814049E-6,    7.3117087048762E-6,    -3.11755974315232E-6,    -7.62105312919144E-6,    1.63825317308268E-5,    -1.19954553615034E-5,    -7.76135611102017E-6,    2.90910592518865E-5,    -2.98609445619302E-5,    -1.29833877476296E-19,    4.24600895529503E-5,    -5.89097058820719E-5,    2.24539322701837E-5,    4.98253842156195E-5,    -9.8386632333776E-5,    6.6804568572632E-5,    4.03936587699073E-5,    -0.000142396808637311,    0.000138212720519623,    -1.90549839760961E-19,    -0.000178047948409349,    0.000236402503889069,    -8.64924749021988E-5,    -0.000184721338357759,    0.000351897102677188,    -0.000231006520894752,    -0.000135301804539218,    0.000462826688633192,    -0.000436597914315499,    -1.31634262523249E-18,    0.000533503948283232,    -0.000691207245110825,    0.000247049395922575,    0.00051597755364538,    -0.000962201509059481,    0.000618888396049153,    0.00035547290662345,    -0.00119341582668219,    0.00110576341133556,    8.01246032081147E-18,    -0.00130640285625865,    0.00166598646220205,    -0.000586476898089871,    -0.00120717990958296,    0.00221994774271686,    -0.00140889500349417,    -0.000798932759681302,    0.002649572539732,    -0.00242641755060079,    -4.74071821697122E-18,    0.00280495737910109,    -0.00354115594387684,    0.00123476358547362,    0.00251884237127389,    -0.00459311953705988,    0.00289217149157428,    0.0016281199573114,    -0.00536340496189594,    0.00488186757055627,    7.11475192555503E-18,    -0.00558606569168042,    0.00702356298443997,    -0.00244092616183204,    -0.00496681129234518,    0.00904197087688826,    -0.00568932405582452,    -0.00320362557803171,    0.0105680060876195,    -0.00964411103599802,    -9.40702177357093E-18,    0.0111390631891317,    -0.0141056070489869,    0.00494664819217201,    0.0101790013078303,    -0.0187869440802335,    0.012019699879788,    0.00690580957814338,    -0.023339553204812,    0.0219303511892057,    1.10798713690749E-17,    -0.0273900779734071,    0.0365579656214836,    -0.0136856452093744,    -0.0305838793111507,    0.0628100665160661,    -0.0463727526706215,    -0.0326288468458354,    0.151037725435059,    -0.2573757883086,    0.299995536282891,    -0.2573757883086,    0.151037725435059,    -0.0326288468458354,    -0.0463727526706215,    0.0628100665160661,    -0.0305838793111507,    -0.0136856452093744,    0.0365579656214836,    -0.0273900779734071,    1.10798713690749E-17,    0.0219303511892057,    -0.023339553204812,    0.00690580957814338,    0.012019699879788,    -0.0187869440802335,    0.0101790013078303,    0.00494664819217201,    -0.0141056070489869,    0.0111390631891317,    -9.40702177357093E-18,    -0.00964411103599802,    0.0105680060876195,    -0.00320362557803171,    -0.00568932405582452,    0.00904197087688826,    -0.00496681129234518,    -0.00244092616183204,    0.00702356298443997,    -0.00558606569168042,    7.11475192555503E-18,    0.00488186757055627,    -0.00536340496189594,    0.0016281199573114,    0.00289217149157428,    -0.00459311953705988,    0.00251884237127389,    0.00123476358547362,    -0.00354115594387684,    0.00280495737910109,    -4.74071821697122E-18,    -0.00242641755060079,    0.002649572539732,    -0.000798932759681302,    -0.00140889500349417,    0.00221994774271686,    -0.00120717990958296,    -0.000586476898089871,    0.00166598646220205,    -0.00130640285625865,    8.01246032081147E-18,    0.00110576341133556,    -0.00119341582668219,    0.00035547290662345,    0.000618888396049153,    -0.000962201509059481,    0.00051597755364538,    0.000247049395922575,    -0.000691207245110825,    0.000533503948283232,    -1.31634262523249E-18,    -0.000436597914315499,    0.000462826688633192,    -0.000135301804539218,    -0.000231006520894752,    0.000351897102677188,    -0.000184721338357759,    -8.64924749021988E-5,    0.000236402503889069,    -0.000178047948409349,    -1.90549839760961E-19,    0.000138212720519623,    -0.000142396808637311,    4.03936587699073E-5,    6.6804568572632E-5,    -9.8386632333776E-5,    4.98253842156195E-5,    2.24539322701837E-5,    -5.89097058820719E-5,    4.24600895529503E-5,    -1.29833877476296E-19,    -2.98609445619302E-5,    2.90910592518865E-5,    -7.76135611102017E-6,    -1.19954553615034E-5,    1.63825317308268E-5,    -7.62105312919144E-6,    -3.11755974315232E-6,    7.3117087048762E-6,    -4.6159728814049E-6,    2.80437187253005E-20,    2.25564913853558E-6,    -1.6744135951788E-6};

⌨️ 快捷键说明

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