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

📄 dec2filter2.h

📁 各种工程计算的库函数
💻 H
字号:
/*    Decimation filter for rate 2    Copyright (C) 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    Low pass FIR filter derived using FFT method with Kaiser window (181 terms).    Generated by SYSTOLIX Filter Synthesis at 0:07:27 on 5.9.2000.    Specification:    F1 = 0.225    F2 = 0.25    Passband Ripple = 0.5dB    Stopband Ripple = 72dB*/#ifdef _MSC_VER#pragma warning(disable:4305)#endifstatic const long lDec2FilterLen = 181l;static const float fDec2FilterGain =  1.0f;static const float fpDec2FilterCoeffs[] = {1.51677963743051E-05,2.12356138591066E-05,-2.07673029716099E-05,-3.72972285343722E-05,2.41723330749224E-05,5.90544587901592E-05,-2.34422669344186E-05,-8.66962687022156E-05,1.62558157797743E-05,1.19855945661191E-04,-1.53728086465713E-17,-1.57461347415189E-04,-2.80926722716196E-05,1.97602731760735E-04,7.07587093422398E-05,-2.37431954464962E-04,-1.30473200021508E-04,2.73107023448129E-04,2.09181585735806E-04,-2.99795244297851E-04,-3.08004601576298E-04,3.11746420336731E-04,4.26930937051003E-04,-3.02444783171423E-04,-5.64515257337918E-04,2.6484460373196E-04,7.17601545081064E-04,-1.91689921209387E-04,-8.81093026248385E-04,7.59137517317467E-05,1.04779003177996E-03,8.88932129413872E-05,-1.20831588353899E-03,-3.07959697044361E-04,1.35114822036693E-03,5.84776863167925E-04,-1.46276912823192E-03,-9.20531453093782E-04,1.52794213137524E-03,1.31355609568224E-03,-1.53011775514052E-03,-1.7588251596943E-03,1.45196228672833E-03,2.24752402730415E-03,-1.27599690935289E-03,-2.7667170856807E-03,9.85326991602064E-04,3.29913488868913E-03,-5.64434428031815E-04,-3.82309367458978E-03,2.26581551505111E-16,4.31255057913865E-03,7.18281820598086E-04,-4.73728520994109E-03,-1.59693600328101E-03,5.06318226627837E-03,2.63802918077221E-03,-5.25256962315169E-03,-3.83862069020881E-03,5.26453980886495E-03,5.19037848653672E-03,-5.05514631447823E-03,-6.67939013154679E-03,4.57731237712647E-03,8.28619125279827E-03,-3.78020453541465E-03,-9.98602443595491E-03,2.60767795298092E-03,1.17493309104662E-02,-9.95136526757158E-04,-1.35424661479723E-02,-1.13635906807626E-03,1.53286192091759E-02,3.89095022056693E-03,-1.70689049661968E-02,-7.41832808514349E-03,1.87235887993286E-02,1.19535997388449E-02,-2.02533955764555E-02,-1.79012340819737E-02,2.16208491435656E-02,2.60312627365459E-02,-0.022791585545602,-3.80117042896856E-02,2.37355829807469E-02,5.82178729061808E-02,-2.44282541373491E-02,-0.102776157031988,2.48513519804371E-02,0.317121641931833,0.474879311935805,0.317121641931833,2.48513519804371E-02,-0.102776157031988,-2.44282541373491E-02,5.82178729061808E-02,2.37355829807469E-02,-3.80117042896856E-02,-0.022791585545602,2.60312627365459E-02,2.16208491435656E-02,-1.79012340819737E-02,-2.02533955764555E-02,1.19535997388449E-02,1.87235887993286E-02,-7.41832808514349E-03,-1.70689049661968E-02,3.89095022056693E-03,1.53286192091759E-02,-1.13635906807626E-03,-1.35424661479723E-02,-9.95136526757158E-04,1.17493309104662E-02,2.60767795298092E-03,-9.98602443595491E-03,-3.78020453541465E-03,8.28619125279827E-03,4.57731237712647E-03,-6.67939013154679E-03,-5.05514631447823E-03,5.19037848653672E-03,5.26453980886495E-03,-3.83862069020881E-03,-5.25256962315169E-03,2.63802918077221E-03,5.06318226627837E-03,-1.59693600328101E-03,-4.73728520994109E-03,7.18281820598086E-04,4.31255057913865E-03,2.26581551505111E-16,-3.82309367458978E-03,-5.64434428031815E-04,3.29913488868913E-03,9.85326991602064E-04,-2.7667170856807E-03,-1.27599690935289E-03,2.24752402730415E-03,1.45196228672833E-03,-1.7588251596943E-03,-1.53011775514052E-03,1.31355609568224E-03,1.52794213137524E-03,-9.20531453093782E-04,-1.46276912823192E-03,5.84776863167925E-04,1.35114822036693E-03,-3.07959697044361E-04,-1.20831588353899E-03,8.88932129413872E-05,1.04779003177996E-03,7.59137517317467E-05,-8.81093026248385E-04,-1.91689921209387E-04,7.17601545081064E-04,2.6484460373196E-04,-5.64515257337918E-04,-3.02444783171423E-04,4.26930937051003E-04,3.11746420336731E-04,-3.08004601576298E-04,-2.99795244297851E-04,2.09181585735806E-04,2.73107023448129E-04,-1.30473200021508E-04,-2.37431954464962E-04,7.07587093422398E-05,1.97602731760735E-04,-2.80926722716196E-05,-1.57461347415189E-04,-1.53728086465713E-17,1.19855945661191E-04,1.62558157797743E-05,-8.66962687022156E-05,-2.34422669344186E-05,5.90544587901592E-05,2.41723330749224E-05,-3.72972285343722E-05,-2.07673029716099E-05,2.12356138591066E-05,1.51677963743051E-05};static const double dDec2FilterGain =  1.0;static const double dpDec2FilterCoeffs[] = {1.51677963743051E-05,2.12356138591066E-05,-2.07673029716099E-05,-3.72972285343722E-05,2.41723330749224E-05,5.90544587901592E-05,-2.34422669344186E-05,-8.66962687022156E-05,1.62558157797743E-05,1.19855945661191E-04,-1.53728086465713E-17,-1.57461347415189E-04,-2.80926722716196E-05,1.97602731760735E-04,7.07587093422398E-05,-2.37431954464962E-04,-1.30473200021508E-04,2.73107023448129E-04,2.09181585735806E-04,-2.99795244297851E-04,-3.08004601576298E-04,3.11746420336731E-04,4.26930937051003E-04,-3.02444783171423E-04,-5.64515257337918E-04,2.6484460373196E-04,7.17601545081064E-04,-1.91689921209387E-04,-8.81093026248385E-04,7.59137517317467E-05,1.04779003177996E-03,8.88932129413872E-05,-1.20831588353899E-03,-3.07959697044361E-04,1.35114822036693E-03,5.84776863167925E-04,-1.46276912823192E-03,-9.20531453093782E-04,1.52794213137524E-03,1.31355609568224E-03,-1.53011775514052E-03,-1.7588251596943E-03,1.45196228672833E-03,2.24752402730415E-03,-1.27599690935289E-03,-2.7667170856807E-03,9.85326991602064E-04,3.29913488868913E-03,-5.64434428031815E-04,-3.82309367458978E-03,2.26581551505111E-16,4.31255057913865E-03,7.18281820598086E-04,-4.73728520994109E-03,-1.59693600328101E-03,5.06318226627837E-03,2.63802918077221E-03,-5.25256962315169E-03,-3.83862069020881E-03,5.26453980886495E-03,5.19037848653672E-03,-5.05514631447823E-03,-6.67939013154679E-03,4.57731237712647E-03,8.28619125279827E-03,-3.78020453541465E-03,-9.98602443595491E-03,2.60767795298092E-03,1.17493309104662E-02,-9.95136526757158E-04,-1.35424661479723E-02,-1.13635906807626E-03,1.53286192091759E-02,3.89095022056693E-03,-1.70689049661968E-02,-7.41832808514349E-03,1.87235887993286E-02,1.19535997388449E-02,-2.02533955764555E-02,-1.79012340819737E-02,2.16208491435656E-02,2.60312627365459E-02,-0.022791585545602,-3.80117042896856E-02,2.37355829807469E-02,5.82178729061808E-02,-2.44282541373491E-02,-0.102776157031988,2.48513519804371E-02,0.317121641931833,0.474879311935805,0.317121641931833,2.48513519804371E-02,-0.102776157031988,-2.44282541373491E-02,5.82178729061808E-02,2.37355829807469E-02,-3.80117042896856E-02,-0.022791585545602,2.60312627365459E-02,2.16208491435656E-02,-1.79012340819737E-02,-2.02533955764555E-02,1.19535997388449E-02,1.87235887993286E-02,-7.41832808514349E-03,-1.70689049661968E-02,3.89095022056693E-03,1.53286192091759E-02,-1.13635906807626E-03,-1.35424661479723E-02,-9.95136526757158E-04,1.17493309104662E-02,2.60767795298092E-03,-9.98602443595491E-03,-3.78020453541465E-03,8.28619125279827E-03,4.57731237712647E-03,-6.67939013154679E-03,-5.05514631447823E-03,5.19037848653672E-03,5.26453980886495E-03,-3.83862069020881E-03,-5.25256962315169E-03,2.63802918077221E-03,5.06318226627837E-03,-1.59693600328101E-03,-4.73728520994109E-03,7.18281820598086E-04,4.31255057913865E-03,2.26581551505111E-16,-3.82309367458978E-03,-5.64434428031815E-04,3.29913488868913E-03,9.85326991602064E-04,-2.7667170856807E-03,-1.27599690935289E-03,2.24752402730415E-03,1.45196228672833E-03,-1.7588251596943E-03,-1.53011775514052E-03,1.31355609568224E-03,1.52794213137524E-03,-9.20531453093782E-04,-1.46276912823192E-03,5.84776863167925E-04,1.35114822036693E-03,-3.07959697044361E-04,-1.20831588353899E-03,8.88932129413872E-05,1.04779003177996E-03,7.59137517317467E-05,-8.81093026248385E-04,-1.91689921209387E-04,7.17601545081064E-04,2.6484460373196E-04,-5.64515257337918E-04,-3.02444783171423E-04,4.26930937051003E-04,3.11746420336731E-04,-3.08004601576298E-04,-2.99795244297851E-04,2.09181585735806E-04,2.73107023448129E-04,-1.30473200021508E-04,-2.37431954464962E-04,7.07587093422398E-05,1.97602731760735E-04,-2.80926722716196E-05,-1.57461347415189E-04,-1.53728086465713E-17,1.19855945661191E-04,1.62558157797743E-05,-8.66962687022156E-05,-2.34422669344186E-05,5.90544587901592E-05,2.41723330749224E-05,-3.72972285343722E-05,-2.07673029716099E-05,2.12356138591066E-05,1.51677963743051E-05};

⌨️ 快捷键说明

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