/*******************************************************************************
* SDR Trunk
* Copyright (C) 2014 Dennis Sheirer
*
* 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 Foundationf, either version 3 of the Licensef, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be usefulf,
* 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 notf, see <http://www.gnu.org/licenses/>
******************************************************************************/
package dsp.filter;
public enum Filters
{
/**
* Designed with t-filter:
*
* 48000 Fsf, 243 taps
* 0 - 200 Hz: gain=0f, -60 db attenuation
* 500 - 3500 Hz: gain=1f, 5 db ripple
* 3800 - 24000 Hz: gain=0f, -60 db attenuation
*/
FIR_BANDPASS_AUDIO_48KHZ( new float[]
{
0.0011306590506720503f,
0.0017695582496011488f,
0.0029288606290379564f,
0.004343691928519147f,
0.005911947383484083f,
0.007475952925152455f,
0.008834973531280245f,
0.009767639642827303f,
0.010062783359359985f,
0.009554323352836855f,
0.008154040477083785f,
0.005876856248820146f,
0.002853293692694345f,
-0.0006754620931569513f,
-0.004380476393750235f,
-0.007883982012534343f,
-0.010810030687940836f,
-0.01283857015700313f,
-0.013754750291231674f,
-0.013485225355167158f,
-0.012113350628392553f,
-0.009870878494518202f,
-0.007105858136673649f,
-0.00423044627271302f,
-0.0016581171943216698f,
0.00026139558898877413f,
0.0012960093376189904f,
0.001367153398534282f,
0.0005589404072224782f,
-0.0008998262476139348f,
-0.002678680933513012f,
-0.004405628120562205f,
-0.005733894494038466f,
-0.006403098522792899f,
-0.0062840458452382f,
-0.005398740409728341f,
-0.003912212267810966f,
-0.0020979501642753354f,
-0.0002835213596901672f,
0.0012129422773069776f,
0.002143441512259471f,
0.0023762621098547794f,
0.0019187818063353935f,
0.000912904484557303f,
-0.0003959227311914178f,
-0.0017094242365984f,
-0.0027368218536981716f,
-0.0032529110615098964f,
-0.003141865590241452f,
-0.0024186267939756956f,
-0.0012232782401918676f,
0.00020964495297755235f,
0.0016007876062091302f,
0.0026840078948525774f,
0.003261066093523398f,
0.0032416075292524913f,
0.0026604426307957627f,
0.0016685677475029945f,
0.0005002180750227251f,
-0.0005771658431263752f,
-0.001319472490248709f,
-0.0015570243575186143f,
-0.001229709577267077f,
-0.00039860814610671267f,
0.000768061742498229f,
0.0020316064815484648f,
0.0031342758646814173f,
0.00385441982862473f,
0.004053691192616693f,
0.003706243244244987f,
0.0029036666957800066f,
0.0018348347602710623f,
0.0007447703354245662f,
-0.00011835819081745851f,
-0.000556901991979898f,
-0.0004664033507391891f,
0.00014190043902796031f,
0.001143626440427841f,
0.0023282929683617563f,
0.0034451626872284316f,
0.004257806518147909f,
0.004595703675845672f,
0.00439150448243702f,
0.0036959141111179176f,
0.0026669294496819663f,
0.00153556329292172f,
0.0005555624481582027f,
-0.000052181722788229754f,
-0.00014822483506696354f,
0.0002944283222452884f,
0.0011838275788186557f,
0.0023285887949390117f,
0.003479479143540588f,
0.004383876725492502f,
0.004841511744105689f,
0.004748927884234896f,
0.0041230326070274305f,
0.003098290748206268f,
0.0018980051891599843f,
0.0007858270723442799f,
0.000007808226096047636f,
-0.00026221415675647226f,
0.000038194038926661374f,
0.0008450198034699045f,
0.001980683488085903f,
0.0031920946811098026f,
0.004205885473834353f,
0.004788786880449399f,
0.004799721085068433f,
0.004222198149342628f,
0.0031694947167750084f,
0.0018613072553364282f,
0.0005764055253590191f,
-0.00040837636254631156f,
-0.0008797864800588528f,
-0.0007362748788250025f,
-0.000012335427115590454f,
0.001127487196311246f,
0.0024230493118988245f,
0.0035750267398429276f,
0.004310745684369589f,
0.004445118905106224f,
0.003923338081120285f,
0.0028351651513023415f,
0.0013974479410391886f,
-0.00009204763249292721f,
-0.0013196387156487223f,
-0.0020251151156756176f,
-0.0020605167563326203f,
-0.001424951849329983f,
-0.00026755861117644484f,
0.0011426434337099476f,
0.00247453898902279f,
0.0034075979415458474f,
0.0037034647048603147f,
0.003260419292510863f,
0.002138889696298502f,
0.0005507292550901969f,
-0.0011837011788563476f,
-0.002705803369109791f,
-0.0036965273158039683f,
-0.003950008183602666f,
-0.0034202362142058866f,
-0.002235167107431455f,
-0.0006724174233870484f,
0.0008995473194704798f,
0.0021008342984556796f,
0.0026253485580778205f,
0.002310873178862991f,
0.0011772529466448514f,
-0.0005730908358460114f,
-0.002594671172069867f,
-0.0044734850087020245f,
-0.005818409323341712f,
-0.006347432664306618f,
-0.005952913139489849f,
-0.004732154819606038f,
-0.0029702110984690744f,
-0.0010791651288411521f,
0.00048707995367597095f,
0.0013335442378021411f,
0.0012177475494058294f,
0.00010122252104995588f,
-0.0018287043085791768f,
-0.004200030123435349f,
-0.006529365603823069f,
-0.00832894491185446f,
-0.009214117900210558f,
-0.008992727392755416f,
-0.007713940553513187f,
-0.005665102752109283f,
-0.0033154814998344715f,
-0.001217542957348092f,
0.00011370751541866088f,
0.00031672583066655f,
-0.0007305199337543714f,
-0.002874449900177386f,
-0.005710232857479199f,
-0.008662772551611736f,
-0.01110852438766387f,
-0.01251284869187753f,
-0.012552561484583724f,
-0.011196629466395516f,
-0.008725049876131727f,
-0.005679263313240144f,
-0.0027527053850089833f,
-0.0006423534393274008f,
0.00010613666306157791f,
-0.0007726767835356292f,
-0.0031920086018739423f,
-0.006715187307484388f,
-0.010635986592925665f,
-0.014122526644297223f,
-0.016396230121947006f,
-0.016907881072255753f,
-0.015472266669959437f,
-0.01232951904769663f,
-0.008115919582767236f,
-0.0037455665411447506f,
-0.00022384102223090357f,
0.0015702170495901357f,
0.0010871601110870473f,
-0.0017492942655052172f,
-0.006493113668388964f,
-0.012237738308695591f,
-0.017782884779579476f,
-0.021877188332801504f,
-0.02348982727475883f,
-0.022055126496704366f,
-0.017635878927117044f,
-0.010965170848193264f,
-0.0033482781673564166f,
0.003565343786600591f,
0.008103372983477226f,
0.008926637620116478f,
0.005350637848922081f,
-0.002434639433805644f,
-0.013297914897997802f,
-0.025277752058596798f,
-0.03586329253291671f,
-0.042403748965243175f,
-0.04257882777767779f,
-0.034847147989454305f,
-0.018789707031704826f,
0.004719508132752991f,
0.033554756785942955f,
0.06459420543249415f,
0.09415420005424562f,
0.11853369816477846f,
0.13457931451963423f,
0.14017594101985517f,
0.13457931451963423f,
0.11853369816477848f,
0.09415420005424562f,
0.06459420543249415f,
0.033554756785942955f,
0.004719508132752991f,
-0.018789707031704822f,
-0.034847147989454305f,
-0.04257882777767779f,
-0.042403748965243175f,
-0.03586329253291671f,
-0.025277752058596798f,
-0.01329791489799781f,
-0.002434639433805644f,
0.005350637848922081f,
0.008926637620116478f,
0.008103372983477226f,
0.003565343786600591f,
-0.0033482781673564166f,
-0.01096517084819326f,
-0.017635878927117044f,
-0.022055126496704366f,
-0.02348982727475883f,
-0.021877188332801504f,
-0.017782884779579476f,
-0.012237738308695591f,
-0.006493113668388964f,
-0.0017492942655052172f,
0.0010871601110870439f,
0.0015702170495901396f,
-0.00022384102223090309f,
-0.0037455665411447506f,
-0.00811591958276724f,
-0.01232951904769663f,
-0.015472266669959437f,
-0.016907881072255753f,
-0.016396230121947006f,
-0.014122526644297223f,
-0.010635986592925665f,
-0.006715187307484388f,
-0.0031920086018739444f,
-0.0007726767835356292f,
0.0001061366630615779f,
-0.0006423534393274008f,
-0.0027527053850089833f,
-0.005679263313240145f,
-0.00872504987613173f,
-0.011196629466395517f,
-0.012552561484583724f,
-0.01251284869187753f,
-0.011108524387663866f,
-0.008662772551611736f,
-0.005710232857479197f,
-0.002874449900177386f,
-0.0007305199337543743f,
0.00031672583066655f,
0.0001137075154186604f,
-0.001217542957348092f,
-0.0033154814998344715f,
-0.005665102752109283f,
-0.007713940553513191f,
-0.008992727392755416f,
-0.009214117900210558f,
-0.008328944911854458f,
-0.006529365603823069f,
-0.004200030123435349f,
-0.0018287043085791778f,
0.00010122252104995396f,
0.0012177475494058294f,
0.0013335442378021411f,
0.00048707995367597095f,
-0.0010791651288411521f,
-0.002970211098469072f,
-0.004732154819606038f,
-0.005952913139489849f,
-0.0063474326643066185f,
-0.005818409323341712f,
-0.004473485008702026f,
-0.002594671172069867f,
-0.0005730908358460094f,
0.0011772529466448514f,
0.002310873178862991f,
0.002625348558077821f,
0.0021008342984556796f,
0.0008995473194704788f,
-0.0006724174233870484f,
-0.002235167107431454f,
-0.0034202362142058866f,
-0.003950008183602666f,
-0.0036965273158039683f,
-0.002705803369109791f,
-0.0011837011788563506f,
0.0005507292550901969f,
0.002138889696298502f,
0.003260419292510862f,
0.0037034647048603147f,
0.0034075979415458474f,
0.00247453898902279f,
0.0011426434337099476f,
-0.00026755861117644543f,
-0.0014249518493299838f,
-0.0020605167563326203f,
-0.0020251151156756176f,
-0.001319638715648723f,
-0.00009204763249292625f,
0.0013974479410391886f,
0.0028351651513023415f,
0.003923338081120284f,
0.004445118905106224f,
0.00431074568436959f,
0.0035750267398429276f,
0.0024230493118988228f,
0.001127487196311246f,
-0.000012335427115590454f,
-0.0007362748788250025f,
-0.0008797864800588528f,
-0.0004083763625463096f,
0.000576405525359021f,
0.0018613072553364282f,
0.0031694947167750084f,
0.0042221981493426285f,
0.004799721085068431f,
0.004788786880449399f,
0.004205885473834353f,
0.0031920946811098017f,
0.001980683488085902f,
0.0008450198034699026f,
0.00003819403892666041f,
-0.0002622141567564703f,
0.000007808226096045708f,
0.0007858270723442809f,
0.001898005189159986f,
0.003098290748206268f,
0.004123032607027432f,
0.004748927884234897f,
0.004841511744105689f,
0.004383876725492502f,
0.003479479143540588f,
0.0023285887949390117f,
0.0011838275788186557f,
0.00029442832224528743f,
-0.00014822483506696354f,
-0.000052181722788230235f,
0.0005555624481582017f,
0.0015355632929217181f,
0.002666929449681966f,
0.0036959141111179176f,
0.004391504482437019f,
0.004595703675845674f,
0.004257806518147909f,
0.0034451626872284316f,
0.002328292968361755f,
0.0011436264404278407f,
0.0001419004390279603f,
-0.00046640335073919057f,
-0.000556901991979898f,
-0.00011835819081745802f,
0.0007447703354245662f,
0.0018348347602710623f,
0.0029036666957800066f,
0.0037062432442449863f,
0.0040536911926166925f,
0.003854419828624731f,
0.0031342758646814165f,
0.0020316064815484656f,
0.00076806174249823f,
-0.00039860814610671267f,
-0.001229709577267077f,
-0.0015570243575186143f,
-0.001319472490248709f,
-0.0005771658431263752f,
0.000500218075022725f,
0.001668567747502994f,
0.002660442630795762f,
0.0032416075292524913f,
0.0032610660935233986f,
0.002684007894852579f,
0.0016007876062091293f,
0.00020964495297755235f,
-0.0012232782401918676f,
-0.002418626793975698f,
-0.003141865590241452f,
-0.003252911061509897f,
-0.002736821853698173f,
-0.0017094242365984003f,
-0.0003959227311914187f,
0.0009129044845573019f,
0.0019187818063353941f,
0.0023762621098547807f,
0.00214344151225947f,
0.0012129422773069776f,
-0.0002835213596901672f,
-0.0020979501642753354f,
-0.003912212267810966f,
-0.005398740409728341f,
-0.0062840458452382f,
-0.006403098522792899f,
-0.005733894494038467f,
-0.004405628120562203f,
-0.002678680933513013f,
-0.0008998262476139358f,
0.0005589404072224788f,
0.001367153398534282f,
0.0012960093376189895f,
0.0002613955889887717f,
-0.0016581171943216698f,
-0.00423044627271302f,
-0.007105858136673649f,
-0.009870878494518204f,
-0.012113350628392553f,
-0.013485225355167158f,
-0.01375475029123167f,
-0.01283857015700313f,
-0.010810030687940836f,
-0.007883982012534343f,
-0.004380476393750235f,
-0.0006754620931569513f,
0.0028532936926943457f,
0.005876856248820146f,
0.008154040477083787f,
0.009554323352836855f,
0.010062783359359985f,
0.009767639642827303f,
0.008834973531280245f,
0.007475952925152455f,
0.005911947383484083f,
0.004343691928519149f,
0.0029288606290379547f,
0.00176955824960115f,
0.0011306590506720503f
} ),
FIRHP_LTR_DCBLOCK_750FS_50FC( new float[]
{
0.0679294122464217f,
-0.07324095797199973f,
-0.03838823381974882f,
-0.013430897335300878f,
0.006449207638138327f,
0.022750490924149575f,
0.034175688012529584f,
0.037600969376502945f,
0.030002787357015913f,
0.009961076769098255f,
-0.02214359076495753f,
-0.062375656373163425f,
-0.10487871348895818f,
-0.14241968373731975f,
-0.16818470634383087f,
0.8226518956829582f,
-0.16818470634383087f,
-0.14241968373731975f,
-0.10487871348895818f,
-0.062375656373163425f,
-0.02214359076495753f,
0.009961076769098255f,
0.030002787357015913f,
0.037600969376502945f,
0.034175688012529584f,
0.022750490924149575f,
0.006449207638138327f,
-0.013430897335300878f,
-0.03838823381974882f,
-0.07324095797199973f,
0.0679294122464217f
}),
FIRLP_LTR_1500FS( new float[]
{
-0.008272676875607624f,
-0.0024939020178146617f,
0.010376092557732189f,
0.011962525412519345f,
-0.003977368587769054f,
-0.013289773851060555f,
-0.0029497606301098858f,
0.003941811083306652f,
-0.003154954069081114f,
0.005485070321679545f,
0.03171909301543344f,
0.015387284536986508f,
-0.055467824110903244f,
-0.07246950346172203f,
0.03466378905394898f,
0.1322297692443333f,
0.04683098737206109f,
-0.13469992806577527f,
-0.14450919452286415f,
0.0578348928408703f,
0.18926196545202326f,
0.0578348928408703f,
-0.14450919452286415f,
-0.13469992806577527f,
0.04683098737206109f,
0.1322297692443333f,
0.03466378905394898f,
-0.07246950346172203f,
-0.055467824110903244f,
0.015387284536986508f,
0.03171909301543344f,
0.005485070321679545f,
-0.003154954069081114f,
0.003941811083306652f,
-0.0029497606301098858f,
-0.013289773851060555f,
-0.003977368587769054f,
0.011962525412519345f,
0.010376092557732189f,
-0.0024939020178146617f,
-0.008272676875607624f
}),
FIRBP_1200FSK_24000FS( new float[]
{
0.004792788663425844f,
0.004034377807422182f,
0.004699808237099943f,
0.00443210843891432f,
0.0028638644082473f,
-0.00015292185838515035f,
-0.004394278846594682f,
-0.009212560275995686f,
-0.013596659741332163f,
-0.016383584186535002f,
-0.016573550574018152f,
-0.013657566836436204f,
-0.007851047182221552f,
-0.00014425394402752814f,
0.007885453072038891f,
0.014465082677564993f,
0.01811703090261803f,
0.01810997536219774f,
0.014727244087571567f,
0.009244939917342813f,
0.0036035605020527947f,
-0.00014781830127321208f,
-0.0004913597198315713f,
0.0030136991548897693f,
0.009453462203915387f,
0.01666055505335309f,
0.02170180561798826f,
0.021656701887523472f,
0.014498683513932197f,
-0.0001565221289617459f,
-0.02065343799220559f,
-0.04339467795574746f,
-0.06347784859804807f,
-0.07576298936541592f,
-0.07612281593093975f,
-0.06256712023008996f,
-0.03596397841747506f,
-0.00012170810308311971f,
0.03885147059625151f,
0.07377979316631962f,
0.09792980519752477f,
0.10655596332800969f,
0.09792980519752477f,
0.07377979316631962f,
0.03885147059625151f,
-0.00012170810308311971f,
-0.03596397841747506f,
-0.06256712023008996f,
-0.07612281593093975f,
-0.07576298936541592f,
-0.06347784859804807f,
-0.04339467795574746f,
-0.02065343799220559f,
-0.0001565221289617459f,
0.014498683513932197f,
0.021656701887523472f,
0.02170180561798826f,
0.01666055505335309f,
0.009453462203915387f,
0.0030136991548897693f,
-0.0004913597198315713f,
-0.00014781830127321208f,
0.0036035605020527947f,
0.009244939917342813f,
0.014727244087571567f,
0.01810997536219774f,
0.01811703090261803f,
0.014465082677564993f,
0.007885453072038891f,
-0.00014425394402752814f,
-0.007851047182221552f,
-0.013657566836436204f,
-0.016573550574018152f,
-0.016383584186535002f,
-0.013596659741332163f,
-0.009212560275995686f,
-0.004394278846594682f,
-0.00015292185838515035f,
0.0028638644082473f,
0.00443210843891432f,
0.004699808237099943f,
0.004034377807422182f,
0.004792788663425844f
}),
FIRLP_3K( new float[]
{
/*
FIR filter designed with
http://t-filter.appspot.com
sampling frequency: 48000 Hz
* 0 Hz - 3000 Hz
gain = 1
desired ripple = 5 dB
actual ripple = 4.1593978370041 dB
* 4000 Hz - 24000 Hz
gain = 0
desired attenuation = -80 dB
actual attenuation = -80.03322246183818 dB
*/
-0.00011443124614437417f,
-0.00017293152659867192f,
-0.0002537395679787903f,
-0.0002960101735353313f,
-0.00023955416024142116f,
-0.000005428557963321982f,
0.0004964100334261843f,
0.0013538842757409063f,
0.002634918910611058f,
0.00436693575408337f,
0.0065175161697321555f,
0.00897952475800971f,
0.011566379161822652f,
0.014018876408451886f,
0.016028053953955006f,
0.017270887068042688f,
0.01745751423179922f,
0.0163833187291431f,
0.013977100662194252f,
0.010337169842377791f,
0.005746282323474722f,
0.0006589019184637925f,
-0.004341600521758248f,
-0.008613131831428159f,
-0.011545791615276019f,
-0.012660543617859996f,
-0.011700549440186059f,
-0.008698639621450092f,
-0.004006684845818583f,
0.00172317360274727f,
0.007608807120062409f,
0.012654244324839246f,
0.015898391911284164f,
0.016575938784747404f,
0.014265883702010186f,
0.009002241493722784f,
0.0013255862247370318f,
-0.007739007276591945f,
-0.0167810834076902f,
-0.024172675639705345f,
-0.02828537119270343f,
-0.027727506101182933f,
-0.02156733481426441f,
-0.009507700677949931f,
0.008016566866990643f,
0.02983764491633055f,
0.05415546347475946f,
0.0787307236559999f,
0.10114644750135711f,
0.11910360136213424f,
0.13071022495045617f,
0.13472344727490876f,
0.13071022495045617f,
0.11910360136213424f,
0.10114644750135711f,
0.0787307236559999f,
0.05415546347475946f,
0.02983764491633055f,
0.008016566866990643f,
-0.009507700677949931f,
-0.02156733481426441f,
-0.027727506101182933f,
-0.02828537119270343f,
-0.024172675639705345f,
-0.0167810834076902f,
-0.007739007276591945f,
0.0013255862247370318f,
0.009002241493722784f,
0.014265883702010186f,
0.016575938784747404f,
0.015898391911284164f,
0.012654244324839246f,
0.007608807120062409f,
0.00172317360274727f,
-0.004006684845818583f,
-0.008698639621450092f,
-0.011700549440186059f,
-0.012660543617859996f,
-0.011545791615276019f,
-0.008613131831428159f,
-0.004341600521758248f,
0.0006589019184637925f,
0.005746282323474722f,
0.010337169842377791f,
0.013977100662194252f,
0.0163833187291431f,
0.01745751423179922f,
0.017270887068042688f,
0.016028053953955006f,
0.014018876408451886f,
0.011566379161822652f,
0.00897952475800971f,
0.0065175161697321555f,
0.00436693575408337f,
0.002634918910611058f,
0.0013538842757409063f,
0.0004964100334261843f,
-0.000005428557963321982f,
-0.00023955416024142116f,
-0.0002960101735353313f,
-0.0002537395679787903f,
-0.00017293152659867192f,
-0.00011443124614437417f
} ),
FIRLP_8K( new float[] {
/*
FIR filter designed with
http://t-filter.appspot.com
sampling frequency: 48000 Hz
* 0 Hz - 4000 Hz
gain = 1
desired ripple = 5 dB
actual ripple = 4.166465745565044 dB
* 4600 Hz - 24000 Hz
gain = 0
desired attenuation = -60 dB
actual attenuation = -60.01902518862098 dB
*/
-0.0005876043141107231f,
0.0000395798795893033f,
0.0007936108691418746f,
0.002271220583758663f,
0.0045690708238380244f,
0.007632833240537176f,
0.011210445195711924f,
0.014848077882921171f,
0.01794155760934873f,
0.019840991376714804f,
0.01999155424676768f,
0.018081523929298803f,
0.01415831726867514f,
0.008676730505642374f,
0.0024562153938831365f,
-0.0034571527303437705f,
-0.008001879410852286f,
-0.010340843984508226f,
-0.010072395969237698f,
-0.007354895192546896f,
-0.0029039203557233197f,
0.0021492484218134564f,
0.006514352308475102f,
0.009056570176096615f,
0.009090754245710363f,
0.006576743943510026f,
0.002156484338606342f,
-0.0029881335341335434f,
-0.007431040256860951f,
-0.009881347307264159f,
-0.009547761214420764f,
-0.006387716720906473f,
-0.00116384277476187f,
0.004722257199180802f,
0.0095865822102477f,
0.011924484237795421f,
0.010856600363787754f,
0.006429626923814576f,
-0.00032219256325637487f,
-0.007591488679896054f,
-0.01325346967699737f,
-0.015451428687349951f,
-0.013159262174429455f,
-0.006567549275313882f,
0.0028476895325932673f,
0.012598008810195174f,
0.019781804328972176f,
0.02186025227953089f,
0.017422058628364847f,
0.006738234527549823f,
-0.008066547704296321f,
-0.023306710233840622f,
-0.0344567035523893f,
-0.037158269971142174f,
-0.028289474602001076f,
-0.006838858354697991f,
0.02563946671507246f,
0.06512400470969f,
0.10578445793560229f,
0.141076536562424f,
0.16504202130157974f,
0.17352664849913732f,
0.16504202130157974f,
0.141076536562424f,
0.10578445793560229f,
0.06512400470969f,
0.02563946671507246f,
-0.006838858354697991f,
-0.028289474602001076f,
-0.037158269971142174f,
-0.0344567035523893f,
-0.023306710233840622f,
-0.008066547704296321f,
0.006738234527549823f,
0.017422058628364847f,
0.02186025227953089f,
0.019781804328972176f,
0.012598008810195174f,
0.0028476895325932673f,
-0.006567549275313882f,
-0.013159262174429455f,
-0.015451428687349951f,
-0.01325346967699737f,
-0.007591488679896054f,
-0.00032219256325637487f,
0.006429626923814576f,
0.010856600363787754f,
0.011924484237795421f,
0.0095865822102477f,
0.004722257199180802f,
-0.00116384277476187f,
-0.006387716720906473f,
-0.009547761214420764f,
-0.009881347307264159f,
-0.007431040256860951f,
-0.0029881335341335434f,
0.002156484338606342f,
0.006576743943510026f,
0.009090754245710363f,
0.009056570176096615f,
0.006514352308475102f,
0.0021492484218134564f,
-0.0029039203557233197f,
-0.007354895192546896f,
-0.010072395969237698f,
-0.010340843984508226f,
-0.008001879410852286f,
-0.0034571527303437705f,
0.0024562153938831365f,
0.008676730505642374f,
0.01415831726867514f,
0.018081523929298803f,
0.01999155424676768f,
0.019840991376714804f,
0.01794155760934873f,
0.014848077882921171f,
0.011210445195711924f,
0.007632833240537176f,
0.0045690708238380244f,
0.002271220583758663f,
0.0007936108691418746f,
0.0000395798795893033f,
-0.0005876043141107231f
} ),
FIRLP_15K( new float[] {
/*
FIR filter designed with http://t-filter.appspot.com
sampling frequency: 48000 Hz
* 0 Hz - 7000 Hz
gain = 1
desired ripple = 5 dB
actual ripple = 3.6923464109664326 dB
* 9000 Hz - 24000 Hz
gain = 0
desired attenuation = -40 dB
actual attenuation = -41.03342332843521 dB
*/
-0.014082901225560598f,
-0.02333969799770533f,
-0.022033345340200808f,
-0.0004492742003176776f,
0.034217272170844526f,
0.05847499164066433f,
0.04845184454729058f,
0.0029885635174003813f,
-0.045972124010673326f,
-0.04957432533335844f,
0.02225593631403953f,
0.15189293741405197f,
0.27718300156351594f,
0.32893125787628796f,
0.27718300156351594f,
0.15189293741405197f,
0.02225593631403953f,
-0.04957432533335844f,
-0.045972124010673326f,
0.0029885635174003813f,
0.04845184454729058f,
0.05847499164066433f,
0.034217272170844526f,
-0.0004492742003176776f,
-0.022033345340200808f,
-0.02333969799770533f,
-0.014082901225560598f
} ),
//FS=192000 FC=40000 WIN: Kaiser-Bessel
FIR_HALF_BAND_31T_ONE_EIGHTH_FCO( new float[] {
-0.000045886616046836f, 0f,
0.000591369980811269f, 0f,
-0.002865894676690263f, 0f,
0.008258847333251895f, 0f,
-0.019555838964709603f, 0f,
0.041885910942306370f, 0f,
-0.091494773870957058f, 0f,
0.313146427083389300f, 0.5f, //.499981677577289670f,
0.313146427083389300f, 0f,
-0.091494773870957058f, 0f,
0.041885910942306370f, 0f,
-0.019555838964709603f, 0f,
0.008258847333251895f, 0f,
-0.002865894676690263f, 0f,
0.000591369980811269f, 0f,
-0.000045886616046836f
} ),
FIRHP_31T_48KFS_300FCO( new float[] { 0.079454311268354116f,
-0.431252134555296540f, -0.080866558157993096f, -0.018201087229858796f,
-0.006959451230405745f, -0.005082182047181806f, -0.004827982359353442f,
-0.004678622485731351f, -0.004518783884113521f, -0.004590986714193629f,
-0.004788367734908081f, -0.004864687584309190f, -0.004847881778381928f,
-0.004819115432733451f, -0.004899065399109821f, 0.995074461482826860f,
-0.004899065399109821f, -0.004819115432733451f, -0.004847881778381928f,
-0.004864687584309190f, -0.004788367734908081f, -0.004590986714193629f,
-0.004518783884113521f, -0.004678622485731351f, -0.004827982359353442f,
-0.005082182047181806f, -0.006959451230405745f, -0.018201087229858796f,
-0.080866558157993096f, -0.431252134555296540f, 0.079454311268354116f } ),
FIRHP_31T_12KFS_400FCO( new float[] { 0.053389156955298771f,
0.182002884434506210f, -0.086127791245869528f, -0.016516534724731153f,
-0.036968390772931715f, -0.035475484228869217f, -0.040734954194563675f,
-0.044789081155425826f, -0.049513180269900807f, -0.054086500917566893f,
-0.058563271660686450f, -0.062449865988963169f, -0.065441928590436960f,
-0.068170371167388846f, -0.069540820637351994f, 0.930065488549365990f,
-0.069540820637351994f, -0.068170371167388846f, -0.065441928590436960f,
-0.062449865988963169f, -0.058563271660686450f, -0.054086500917566893f,
-0.049513180269900807f, -0.044789081155425826f, -0.040734954194563675f,
-0.035475484228869217f, -0.036968390772931715f, -0.016516534724731153f,
-0.086127791245869528f, 0.182002884434506210f, 0.053389156955298771f } ),
/**
* FIR Low Pass Filter
* Sample Rate: 48000
* Taps: 55
* Cutoff Freq: 3000 Hz
* Designer: http://t-filter.appspot.com/fir/index.html
*/
FIRLP_55TAP_48000FS_3000FC( new float[] { -0.0052419787903715655f,
-0.0003789909443307852f, 0.0012970137854134386f, 0.004210460544067679f,
0.008221266221665309f, 0.012951576579356689f, 0.017794312853913318f,
0.021959871931790928f, 0.024583800118549094f, 0.024878144443784132f,
0.022296319647647538f, 0.016685495012933472f, 0.008390268267799136f,
-0.001718264469387386f, -0.012288389660616603f, -0.02161633130497537f,
-0.027882128567957774f, -0.02943377233328899f, -0.025006516193566884f,
-0.014040074880106284f, 0.0032217508351258103f, 0.025660031586092195f,
0.05136009984280478f, 0.0778336106888181f, 0.10230926486919244f,
0.12209961841343948f, 0.13496813439824185f, 0.13943117253534673f,
0.13496813439824185f, 0.12209961841343948f, 0.10230926486919244f,
0.0778336106888181f, 0.05136009984280478f, 0.025660031586092195f,
0.0032217508351258103f, -0.014040074880106284f, -0.025006516193566884f,
-0.02943377233328899f, -0.027882128567957774f, -0.02161633130497537f,
-0.012288389660616603f, -0.001718264469387386f, 0.008390268267799136f,
0.016685495012933472f, 0.022296319647647538f, 0.024878144443784132f,
0.024583800118549094f, 0.021959871931790928f, 0.017794312853913318f,
0.012951576579356689f, 0.008221266221665309f, 0.004210460544067679f,
0.0012970137854134386f, -0.0003789909443307852f, -0.0052419787903715655f } ),
/*
FIR filter designed with
http://t-filter.appspot.com
sampling frequency: 24000 Hz
* 0 Hz - 1400 Hz
gain = 1
desired ripple = 5 dB
actual ripple = 4.175011388566792 dB
* 1500 Hz - 12000 Hz
gain = 0
desired attenuation = -40 dB
actual attenuation = -40.00189415137373 dB
*/
FIRLP_24000FS_TO_3000FS( new float[] {
/*
FIR filter designed with
http://t-filter.appspot.com
sampling frequency: 48000 Hz
* 0 Hz - 3000 Hz
gain = 1
desired ripple = 5 dB
actual ripple = 3.939100294265316 dB
* 3500 Hz - 24000 Hz
gain = 0
desired attenuation = -40 dB
actual attenuation = -40.489198844529355 dB
*/
.2f,.2f,.2f,.2f,.2f,.2f,.2f
}),
FIRLP_3000FS_TO_150FC( new float[] {
/* FIR filter designed with http://t-filter.appspot.com sampling frequency: 3000 Hz
* 0 Hz - 155 Hz gain = 1 desired ripple = 5 dB actual ripple = 4.1713329390800755 dB
* 160 Hz - 1500 Hz gain = 0 desired attenuation = -40 dB actual attenuation = -40.00926353319547 dB
*/
-0.006122920352830965f,
-0.0023884346335371165f,
-0.002599310268302821f,
-0.002619226598223891f,
-0.0024058915455907196f,
-0.0019288301578398123f,
-0.0011732914244696805f,
-0.00014348647168516363f,
0.0011360279713313209f,
0.002620018618160862f,
0.004244279668461443f,
0.005929041211240287f,
0.007583700132903604f,
0.009112816853143859f,
0.010422968037142797f,
0.011429759533610568f,
0.012064461696610605f,
0.01227985703081096f,
0.012054670302231996f,
0.011395973228693276f,
0.010339492321850014f,
0.008947826461137941f,
0.007306289027941143f,
0.005516680433668245f,
0.003689888284206567f,
0.0019376716631701368f,
0.00036406537300421297f,
-0.0009423273945619157f,
-0.0019147615431778597f,
-0.0025137861299055595f,
-0.00272885000805846f,
-0.002579780077995427f,
-0.00211370881796881f,
-0.001401086778987431f,
-0.0005294931107453994f,
0.00040506185948651675f,
0.0013056441129537509f,
0.0020838354221374305f,
0.0026667562654551246f,
0.003003052919640715f,
0.003066845756573675f,
0.002858826770125135f,
0.002405247908616018f,
0.0017550758096436146f,
0.0009750187684900944f,
0.0001428944628485573f,
-0.0006600057708364918f,
-0.0013572018806166464f,
-0.0018849613428995964f,
-0.0021983440926621103f,
-0.002274533536918245f,
-0.0021136819231921474f,
-0.0017380160407736585f,
-0.0011899674040168643f,
-0.0005293364966829129f,
0.00017203581592664565f,
0.0008397052861045773f,
0.0014076463254305174f,
0.0018238726340835366f,
0.0020485384828633777f,
0.002054368304440125f,
0.00184518937028339f,
0.001463759939291864f,
0.0009254779772329933f,
0.00030908834306052194f,
-0.00033072041687547837f,
-0.0009242244673079876f,
-0.001411151838185113f,
-0.0017423327816480623f,
-0.001885184212057672f,
-0.001827180245955061f,
-0.0015767572410517868f,
-0.0011623018660948076f,
-0.0006290757127071664f,
-0.000034277486241399186f,
0.0005590116846630576f,
0.0010883547994854647f,
0.0014984460140958136f,
0.0017469004431845741f,
0.0018085733127357138f,
0.00167799070404902f,
0.0013699023886079994f,
0.0009178041117923993f,
0.00037029761935479554f,
-0.00021414834948363428f,
-0.0007733385753572961f,
-0.0012479991812573157f,
-0.0015880719715790936f,
-0.0017577706864892022f,
-0.0017393843977854672f,
-0.0015352614436320124f,
-0.0011668823340746201f,
-0.0006738084260047715f,
-0.00010821707107113083f,
0.00046927876230741587f,
0.0009969768021073388f,
0.001418713685742809f,
0.001689241246422699f,
0.0017799814611489096f,
0.0016808579160732414f,
0.001401938565514821f,
0.0009725070918705811f,
0.00043789676780500817f,
-0.00014493157532811753f,
-0.0007134285789517371f,
-0.0012066408059786802f,
-0.0015718235937901522f,
-0.0017696752225057275f,
-0.0017782857455891608f,
-0.0015955792180418218f,
-0.001239958862296361f,
-0.00074891505028209f,
-0.0001750373426426684f,
0.0004203972508663324f,
0.0009743368473658559f,
0.001427583798294352f,
0.0017300695180374488f,
0.0018474313131084748f,
0.0017665803736364497f,
0.0014959523321337515f,
0.0010620969968500548f,
0.0005087929550228872f,
-0.00010287888971484906f,
-0.0007071978327354896f,
-0.0012439856702169039f,
-0.0016485023632017621f,
-0.0018816779265696613f,
-0.0019137822019732152f,
-0.0017410363220249359f,
-0.0013797190792108685f,
-0.0008669516848493666f,
-0.0002564820252824784f,
0.00038702570052167175f,
0.0009946245737452108f,
0.0015005576753828536f,
0.0018494543772917837f,
0.002002271293795752f,
0.0019405399480025168f,
0.001668583653638679f,
0.0012133648938024923f,
0.0006218226272857692f,
-0.00004396586555373278f,
-0.0007131888239163173f,
-0.0013137753201852866f,
-0.0017802301804471922f,
-0.002060772342951284f,
-0.0021230164816546412f,
-0.0019576726289922586f,
-0.001579698202436061f,
-0.0010269473735399154f,
-0.0003566571442405154f,
0.00036046532149158213f,
0.001047910209033917f,
0.0016308959748307101f,
0.0020457879850275806f,
0.0022452826272775055f,
0.0022053677261764473f,
0.0019268362424314605f,
0.001436104198970914f,
0.000783301048300022f,
0.000036170113001030666f,
-0.0007258491765731604f,
-0.0014208542690678963f,
-0.001973351045206107f,
-0.0023218012876373207f,
-0.002425430974535461f,
-0.0022692307984843695f,
-0.0018659822196923194f,
-0.0012553733554405261f,
-0.0005001275988053344f,
0.0003207533398910953f,
0.0011202470135660719f,
0.0018119245687932325f,
0.0023191095738080646f,
0.0025840361579153536f,
0.0025746366972740037f,
0.0022874947808971076f,
0.0017482590981993708f,
0.001010469529718797f,
0.00015080284754578053f,
-0.0007401321025391216f,
-0.0015677281601321103f,
-0.002241555313336647f,
-0.002685049904781321f,
-0.002847415468166842f,
-0.002706332216634437f,
-0.0022693572465456347f,
-0.0015807551810501244f,
-0.0007073681818317356f,
0.00025858155245919815f,
0.0012156374711696657f,
0.0020601250277244316f,
0.002698864465909288f,
0.003058968365749582f,
0.003095930462187589f,
0.002799180323785052f,
0.0021938662312239255f,
0.0013387749941891575f,
0.00032073673872905727f,
-0.0007540149497279023f,
-0.0017707823148707424f,
-0.0026186149816637165f,
-0.0032023981947833136f,
-0.0034533803843191375f,
-0.0033370666249195324f,
-0.002857634299302074f,
-0.0020583398437455315f,
-0.0010178803764328268f,
0.00015714303240366978f,
0.00134312158248896f,
0.0024123674642028033f,
0.0032466971416879246f,
0.003750429521389635f,
0.0038610298842211605f,
0.0035563826341158213f,
0.0028590450497876694f,
0.0018334905123878731f,
0.0005825119501486656f,
-0.0007653431253644171f,
-0.002066921044075508f,
-0.00318050748566926f,
-0.003981099599522876f,
-0.004372950526822947f,
-0.004302245531766623f,
-0.0037634623427922525f,
-0.0028010281264617036f,
-0.0015063684237781073f,
-0.000009312999857163947f,
0.0015348340498211675f,
0.002960705851903475f,
0.00411025264482529f,
0.004850497409323919f,
0.00508852374186094f,
0.004782051229146126f,
0.003945677268175109f,
0.002651861057270526f,
0.001024987337059874f,
-0.000770898857558077f,
-0.0025480549808695363f,
-0.0041134371938038455f,
-0.005289473467472686f,
-0.0059345294154884536f,
-0.005958790652492603f,
-0.0053348632172493865f,
-0.004104133685973202f,
-0.0023757889373754375f,
-0.0003154863263286177f,
0.0018679968592255536f,
0.003942664171895544f,
0.005680643711722206f,
0.006877057686831076f,
0.007378348952494577f,
0.007096715159487296f,
0.0060250187066667035f,
0.004239992353086172f,
0.0018984740602875209f,
-0.0007749973681354589f,
-0.0035085807133030038f,
-0.0060094188052075385f,
-0.007993440148818328f,
-0.009215708970605762f,
-0.00949819102645701f,
-0.008752165260963618f,
-0.006992771039067642f,
-0.004343750499151247f,
-0.0010313778997952953f,
0.002632475569255834f,
0.006276994042887084f,
0.009506525921431109f,
0.011939275012512792f,
0.013247115357734634f,
0.013192709905840089f,
0.011660378948982f,
0.008677354388180201f,
0.0044226259943339384f,
-0.0007776763994276021f,
-0.006468598011493521f,
-0.01209866234178173f,
-0.01705984630504337f,
-0.020740073978089375f,
-0.022572656974485978f,
-0.022091348052909576f,
-0.018974044064189968f,
-0.01307870343426492f,
-0.004467461602914141f,
0.006588374127832776f,
0.019617756508396658f,
0.03397630130130575f,
0.04888871785298119f,
0.06350208150118342f,
0.07694602080488765f,
0.08839667839951919f,
0.09713857345310689f,
0.10261800054825827f,
0.10448449122868045f,
0.10261800054825827f,
0.09713857345310689f,
0.08839667839951919f,
0.07694602080488765f,
0.06350208150118342f,
0.04888871785298119f,
0.03397630130130575f,
0.019617756508396658f,
0.006588374127832776f,
-0.004467461602914141f,
-0.01307870343426492f,
-0.018974044064189968f,
-0.022091348052909576f,
-0.022572656974485978f,
-0.020740073978089375f,
-0.01705984630504337f,
-0.01209866234178173f,
-0.006468598011493521f,
-0.0007776763994276021f,
0.0044226259943339384f,
0.008677354388180201f,
0.011660378948982f,
0.013192709905840089f,
0.013247115357734634f,
0.011939275012512792f,
0.009506525921431109f,
0.006276994042887084f,
0.002632475569255834f,
-0.0010313778997952953f,
-0.004343750499151247f,
-0.006992771039067642f,
-0.008752165260963618f,
-0.00949819102645701f,
-0.009215708970605762f,
-0.007993440148818328f,
-0.0060094188052075385f,
-0.0035085807133030038f,
-0.0007749973681354589f,
0.0018984740602875209f,
0.004239992353086172f,
0.0060250187066667035f,
0.007096715159487296f,
0.007378348952494577f,
0.006877057686831076f,
0.005680643711722206f,
0.003942664171895544f,
0.0018679968592255536f,
-0.0003154863263286177f,
-0.0023757889373754375f,
-0.004104133685973202f,
-0.0053348632172493865f,
-0.005958790652492603f,
-0.0059345294154884536f,
-0.005289473467472686f,
-0.0041134371938038455f,
-0.0025480549808695363f,
-0.000770898857558077f,
0.001024987337059874f,
0.002651861057270526f,
0.003945677268175109f,
0.004782051229146126f,
0.00508852374186094f,
0.004850497409323919f,
0.00411025264482529f,
0.002960705851903475f,
0.0015348340498211675f,
-0.000009312999857163947f,
-0.0015063684237781073f,
-0.0028010281264617036f,
-0.0037634623427922525f,
-0.004302245531766623f,
-0.004372950526822947f,
-0.003981099599522876f,
-0.00318050748566926f,
-0.002066921044075508f,
-0.0007653431253644171f,
0.0005825119501486656f,
0.0018334905123878731f,
0.0028590450497876694f,
0.0035563826341158213f,
0.0038610298842211605f,
0.003750429521389635f,
0.0032466971416879246f,
0.0024123674642028033f,
0.00134312158248896f,
0.00015714303240366978f,
-0.0010178803764328268f,
-0.0020583398437455315f,
-0.002857634299302074f,
-0.0033370666249195324f,
-0.0034533803843191375f,
-0.0032023981947833136f,
-0.0026186149816637165f,
-0.0017707823148707424f,
-0.0007540149497279023f,
0.00032073673872905727f,
0.0013387749941891575f,
0.0021938662312239255f,
0.002799180323785052f,
0.003095930462187589f,
0.003058968365749582f,
0.002698864465909288f,
0.0020601250277244316f,
0.0012156374711696657f,
0.00025858155245919815f,
-0.0007073681818317356f,
-0.0015807551810501244f,
-0.0022693572465456347f,
-0.002706332216634437f,
-0.002847415468166842f,
-0.002685049904781321f,
-0.002241555313336647f,
-0.0015677281601321103f,
-0.0007401321025391216f,
0.00015080284754578053f,
0.001010469529718797f,
0.0017482590981993708f,
0.0022874947808971076f,
0.0025746366972740037f,
0.0025840361579153536f,
0.0023191095738080646f,
0.0018119245687932325f,
0.0011202470135660719f,
0.0003207533398910953f,
-0.0005001275988053344f,
-0.0012553733554405261f,
-0.0018659822196923194f,
-0.0022692307984843695f,
-0.002425430974535461f,
-0.0023218012876373207f,
-0.001973351045206107f,
-0.0014208542690678963f,
-0.0007258491765731604f,
0.000036170113001030666f,
0.000783301048300022f,
0.001436104198970914f,
0.0019268362424314605f,
0.0022053677261764473f,
0.0022452826272775055f,
0.0020457879850275806f,
0.0016308959748307101f,
0.001047910209033917f,
0.00036046532149158213f,
-0.0003566571442405154f,
-0.0010269473735399154f,
-0.001579698202436061f,
-0.0019576726289922586f,
-0.0021230164816546412f,
-0.002060772342951284f,
-0.0017802301804471922f,
-0.0013137753201852866f,
-0.0007131888239163173f,
-0.00004396586555373278f,
0.0006218226272857692f,
0.0012133648938024923f,
0.001668583653638679f,
0.0019405399480025168f,
0.002002271293795752f,
0.0018494543772917837f,
0.0015005576753828536f,
0.0009946245737452108f,
0.00038702570052167175f,
-0.0002564820252824784f,
-0.0008669516848493666f,
-0.0013797190792108685f,
-0.0017410363220249359f,
-0.0019137822019732152f,
-0.0018816779265696613f,
-0.0016485023632017621f,
-0.0012439856702169039f,
-0.0007071978327354896f,
-0.00010287888971484906f,
0.0005087929550228872f,
0.0010620969968500548f,
0.0014959523321337515f,
0.0017665803736364497f,
0.0018474313131084748f,
0.0017300695180374488f,
0.001427583798294352f,
0.0009743368473658559f,
0.0004203972508663324f,
-0.0001750373426426684f,
-0.00074891505028209f,
-0.001239958862296361f,
-0.0015955792180418218f,
-0.0017782857455891608f,
-0.0017696752225057275f,
-0.0015718235937901522f,
-0.0012066408059786802f,
-0.0007134285789517371f,
-0.00014493157532811753f,
0.00043789676780500817f,
0.0009725070918705811f,
0.001401938565514821f,
0.0016808579160732414f,
0.0017799814611489096f,
0.001689241246422699f,
0.001418713685742809f,
0.0009969768021073388f,
0.00046927876230741587f,
-0.00010821707107113083f,
-0.0006738084260047715f,
-0.0011668823340746201f,
-0.0015352614436320124f,
-0.0017393843977854672f,
-0.0017577706864892022f,
-0.0015880719715790936f,
-0.0012479991812573157f,
-0.0007733385753572961f,
-0.00021414834948363428f,
0.00037029761935479554f,
0.0009178041117923993f,
0.0013699023886079994f,
0.00167799070404902f,
0.0018085733127357138f,
0.0017469004431845741f,
0.0014984460140958136f,
0.0010883547994854647f,
0.0005590116846630576f,
-0.000034277486241399186f,
-0.0006290757127071664f,
-0.0011623018660948076f,
-0.0015767572410517868f,
-0.001827180245955061f,
-0.001885184212057672f,
-0.0017423327816480623f,
-0.001411151838185113f,
-0.0009242244673079876f,
-0.00033072041687547837f,
0.00030908834306052194f,
0.0009254779772329933f,
0.001463759939291864f,
0.00184518937028339f,
0.002054368304440125f,
0.0020485384828633777f,
0.0018238726340835366f,
0.0014076463254305174f,
0.0008397052861045773f,
0.00017203581592664565f,
-0.0005293364966829129f,
-0.0011899674040168643f,
-0.0017380160407736585f,
-0.0021136819231921474f,
-0.002274533536918245f,
-0.0021983440926621103f,
-0.0018849613428995964f,
-0.0013572018806166464f,
-0.0006600057708364918f,
0.0001428944628485573f,
0.0009750187684900944f,
0.0017550758096436146f,
0.002405247908616018f,
0.002858826770125135f,
0.003066845756573675f,
0.003003052919640715f,
0.0026667562654551246f,
0.0020838354221374305f,
0.0013056441129537509f,
0.00040506185948651675f,
-0.0005294931107453994f,
-0.001401086778987431f,
-0.00211370881796881f,
-0.002579780077995427f,
-0.00272885000805846f,
-0.0025137861299055595f,
-0.0019147615431778597f,
-0.0009423273945619157f,
0.00036406537300421297f,
0.0019376716631701368f,
0.003689888284206567f,
0.005516680433668245f,
0.007306289027941143f,
0.008947826461137941f,
0.010339492321850014f,
0.011395973228693276f,
0.012054670302231996f,
0.01227985703081096f,
0.012064461696610605f,
0.011429759533610568f,
0.010422968037142797f,
0.009112816853143859f,
0.007583700132903604f,
0.005929041211240287f,
0.004244279668461443f,
0.002620018618160862f,
0.0011360279713313209f,
-0.00014348647168516363f,
-0.0011732914244696805f,
-0.0019288301578398123f,
-0.0024058915455907196f,
-0.002619226598223891f,
-0.002599310268302821f,
-0.0023884346335371165f,
-0.006122920352830965f
} ),
/* Half-band filter coefficients retrieved October 2015 from:
* https://github.com/airspy/host/libairspy/src/filters.h
*
* Copyright (C) 2014, Youssef Touil <youssef@airspy.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
HALF_BAND_FILTER_47T( new float[]
{
-0.000998606272947510f, 0.0f, 0.001695637278417295f, 0.0f,
-0.003054430179754289f, 0.0f, 0.005055504379767936f, 0.0f,
-0.007901319195893647f, 0.0f, 0.011873357051047719f, 0.0f,
-0.017411159379930066f, 0.0f, 0.025304817427568772f, 0.0f,
-0.037225225204559217f, 0.0f, 0.057533286997004301f, 0.0f,
-0.102327462004259350f, 0.0f, 0.317034472508947400f, 0.5f,
0.317034472508947400f, 0.0f, -0.102327462004259350f, 0.0f,
0.057533286997004301f, 0.0f, -0.037225225204559217f, 0.0f,
0.025304817427568772f, 0.0f, -0.017411159379930066f, 0.0f,
0.011873357051047719f, 0.0f, -0.007901319195893647f, 0.0f,
0.005055504379767936f, 0.0f, -0.003054430179754289f, 0.0f,
0.001695637278417295f, 0.0f, -0.000998606272947510f
} );
float[] mCoefficients;
private Filters( float[] coefficients )
{
mCoefficients = coefficients;
}
public float[] getCoefficients()
{
return mCoefficients;
}
}