Skip to content

Instantly share code, notes, and snippets.

@mattgaidica
Created December 15, 2020 00:12
Show Gist options
  • Save mattgaidica/0365cb2899d42e7aaf1ef5905ab0e7a1 to your computer and use it in GitHub Desktop.
Save mattgaidica/0365cb2899d42e7aaf1ef5905ab0e7a1 to your computer and use it in GitHub Desktop.
extern float32_t inputSignal[SIG_SAMPLES] = { 2.09186630161801,
2.17981806111224, 2.2458345331045, 2.20702098281261, 2.05451765784143,
1.85916546584311, 1.7767591356537, 1.79267779175089, 1.85004295412198,
1.82818508686074, 1.72760166685638, 1.54716102329878, 1.39328525785108,
1.37279362871747, 1.37225304331087, 1.31022305067551, 1.21566162283513,
1.24287644762541, 1.38510735478485, 1.60578710124569, 1.93459280511249,
2.26110788479076, 2.43559114351632, 2.44546630752519, 2.37477587905096,
2.14026122136909, 1.77405580991932, 1.36350765781611, 0.998258176086951,
0.77357268824843, 0.567933484496516, 0.384275954063506,
0.288059029461084, 0.311287985207322, 0.323805443624895,
0.380554249757417, 0.394769771692343, 0.298357158074827,
0.194271563680139, 0.0646711483444192, -0.113578396710119,
-0.195331886326701, -0.16015372870751, -0.185769097368895,
-0.250675620815659, -0.248053036991816, -0.359643725669624,
-0.551835601274887, -0.717292813466403, -0.90008381856135,
-1.12345009297177, -1.36582889178755, -1.68472325030337,
-1.99273534693909, -2.15322703739055, -2.1643068480137,
-2.05878777563596, -1.89833571910759, -1.85049998970278,
-1.80738534598465, -1.73284416427796, -1.71365552983813,
-1.70446283404909, -1.65503084719844, -1.57555017197989,
-1.54322752190994, -1.57758869825499, -1.66291072602346,
-1.76919652905002, -1.82871974694563, -1.80465680766335,
-1.74497134083299, -1.85774117948814, -1.89848310399532,
-1.7691400383039, -1.64057850635274, -1.55153243769594,
-1.52464090246822, -1.47734583591609, -1.45792203354266,
-1.49809713258215, -1.61418057032893, -1.71053593164804,
-1.72644683877413, -1.67681830740971, -1.574300846883,
-1.48349549116944, -1.3474987705644, -1.21777678668322,
-1.22140381121034, -1.42213342725301, -1.6959840687584,
-1.69802195550755, -1.45920512468166, -1.22389544676944,
-1.05884887570043, -0.982063822556, -0.975621606280379,
-0.950887463917762, -1.00077550934468, -1.09315147924513,
-1.09323704042678, -0.971011891997623, -0.907862979001133,
-0.918498144273198, -0.989227573768083, -0.983867750913998,
-0.901221600666538, -0.803067014769731, -0.748055761633712,
-0.696082432203181, -0.648104161873508, -0.636097084958894,
-0.535456138884709, -0.34654455473282, -0.217628256582499,
-0.186496785533903, -0.203665249945971, -0.154530982701785,
0.0854787645889381, 0.451809908830462, 0.81262348220381,
1.15363440934741, 1.39926602415842, 1.50463495019329, 1.41540090748103,
1.14194205520164, 0.819731159550015, 0.55302938896426,
0.319989470697297, 0.098224257738569, -0.133450236406081,
-0.311287863234179, -0.350012342540033, -0.361257513881505,
-0.423386135821161, -0.570542917687881, -0.827759687664419,
-0.998641307924867, -1.01247019044324, -0.929434038275443,
-0.771945422887813, -0.661066476423971, -0.626004759799277,
-0.624267089466217, -0.659219355614393, -0.700293806707899,
-0.686836251989272, -0.756498335482468, -0.879714215082598,
-0.946286068850462, -1.030576007361, -1.12539434344135,
-1.24440543545938, -1.23033748291357, -1.09424712045736,
-0.99038032294717, -0.981473273381584, -0.949702313037732,
-0.81688331508359, -0.61403964351873, -0.442935589319764,
-0.389408266552518, -0.380197639102338, -0.404489968793749,
-0.484074282289546, -0.621911820151482, -0.797861024610132,
-0.952190949862467, -1.02404988559341, -1.05656542426228,
-1.15389103687913, -1.32529112808681, -1.43015171316862,
-1.5065816327546, -1.58689943344401, -1.5713908679456,
-1.48653333593322, -1.46457372281609, -1.51863029740384,
-1.55014556169931, -1.53478831996331, -1.54520717453553,
-1.58522097342462, -1.63594078017295, -1.69892727290538,
-1.81151579804935, -1.91345079549278, -2.06364546311759,
-2.20454864842403, -2.23116020730843, -2.09157183370825,
-1.91297982615033, -1.74916100045924, -1.58766595558289,
-1.51559863446475, -1.46615450407335, -1.42029124502941,
-1.41043736570844, -1.36080385976861, -1.26466516905246,
-1.23092316809069, -1.21970753553549, -1.24730977008272,
-1.37957944373967, -1.43357919107905, -1.39194681327389,
-1.30672774307037, -1.15449659318048, -1.04667118912114,
-1.01365838047884, -1.00486688289125, -1.10841198537668,
-1.13724632254795, -0.986420349131992, -0.850952240954274,
-0.735545660060406, -0.589956307911138, -0.433636568201978,
-0.257415689436595, -0.0510825929849415, 0.143400824841893,
0.301505646543325, 0.339190331965213, 0.191059530328728,
-0.0619594241557804, -0.272097898548068, -0.4341469535245,
-0.561290521497459, -0.676953230168132, -0.792934194837087,
-0.884265733552237, -0.866489440555132, -0.794522391140512,
-0.645893979106047, -0.549746201820592, -0.562459815466355,
-0.513027940280808, -0.335860155151111, -0.183190108274636,
-0.163698805073404, -0.235454398215722, -0.314919314918044,
-0.395137486211956, -0.473119224837761, -0.503726266709965,
-0.514040744886561, -0.563995658438161, -0.554002836404674,
-0.449973883928589, -0.313660540988705, -0.196543031798309,
-0.105912191857879, 0.0105957064409128, 0.128389056771281,
0.205243787678048, 0.185510575429083, 0.126890835444305,
0.0970478672323041, 0.204591736736204, 0.341217082095415,
0.474810407451475, 0.609082646299019, 0.724501171030616,
0.735002246354179, 0.58994844077441, 0.37277566281169,
0.170743659231326, 0.0375809516971695, -0.00792831260629339,
0.0389131315214179, 0.164502507157957, 0.330393765220732,
0.439038047889127, 0.467273298780941, 0.451601599992275,
0.366549926715604, 0.200498213444645, 0.142528797038592,
0.188466309164287, 0.260465850485311, 0.302014313521833,
0.354996054483437, 0.464385942380807, 0.592364025174822,
0.556297146636851, 0.324384738975703, 0.0546402852416702,
-0.128215506474831, -0.11795173717787, 0.00520861398197884,
0.286296695932939, 0.636744397803024, 0.843791551143884,
0.878159456433699, 0.746126492764103, 0.469326128412286,
0.16650722310852, 0.0241280865248995, 0.155347295461072,
0.540875586362739, 0.989787847062226, 1.37365382832872,
1.65942071452978, 1.77982838188589, 1.67862004251439, 1.38272665750801,
0.970345251106343, 0.586921120153383, 0.361394365308395,
0.327844426752916, 0.421016789068187, 0.648735147858653,
0.925693895196854, 1.07210491256647, 1.07137542862707,
0.881489920790909, 0.528973121187208, 0.315741193796557,
0.549227486756148, 1.18039225816153, 1.90331925645808, 2.46925834218627,
2.72886450602411, 2.65953469295286, 2.23978475218746, 1.56670187892442,
0.837856999121453, 0.259588619175451, 0.0370412371671844,
0.158811305311165, 0.507558125943791, 0.921482183469583,
1.18801110347376, 1.25284274513359, 1.19857172527239, 1.04950603024249,
0.822096566565146, 0.628585666178443, 0.554348132881257,
0.632218737482332, 0.792676905146216, 0.925436612846731,
1.05176529496586, 1.048174950098, 0.763830089292447, 0.267653469815176,
-0.180850407719688, -0.374163650881739, -0.28186247335828,
0.0102755393838772, 0.411731404405266, 0.734388232471511,
0.819760519691972, 0.760802059984958, 0.54357935754831,
0.183223153455403, -0.152782888107549, -0.318639715807725,
-0.339659544820744, -0.266894520976417, -0.111773555468425,
0.131037569676698, 0.42542306650784, 0.579979974940908,
0.558490124796794, 0.372469007935799, 0.0878663144605783,
-0.190369255143444, -0.35394533178248, -0.247930682634834,
0.112677115894797, 0.593812591252639, 0.928817416510337,
1.07791517615688, 0.987891004870396, 0.645954905219401,
0.176821369632467, -0.213192529746678, -0.204857364221902,
0.261719967256333, 0.893625897530047, 1.4193396095773, 1.76522909976198,
1.9291872326494, 1.90612486625749, 1.77907148307471, 1.5483675884195,
1.33068696436505, 1.09938428369007, 0.915698005413029,
0.776336605822751, 0.607828631539656, 0.347850069624879,
0.140901354472606, 0.104862276177199, 0.139559038316503,
0.221916935355199, 0.348137007887512, 0.493135961659449,
0.521272175223843, 0.568280948688541, 0.604846579319988,
0.590546270474983, 0.549749496476001, 0.470624524474344,
0.489850013550445, 0.717723909271508, 1.01874138366109,
1.16647254017721, 1.24235483570959, 1.17816901014874, 0.91181948580977,
0.68077339429926, 0.572457526690888, 0.539418953173026,
0.626864315950137, 0.820778522791563, 1.02386123319482,
1.31501435634297, 1.68198508747384, 1.94767365182967, 2.06575593430817,
2.03049111296979, 1.83883330073504, 1.57088516227823, 1.29001043014795,
1.12127448945523, 0.937612616779142, 0.816000402623628,
0.861904321886636, 0.956133305076931, 0.880025764720292,
0.748887779279557, 0.600789527322717, 0.482504846539547,
0.480099480567117, 0.440087046671044, 0.310561711332681,
0.148962417898319, 0.0769342866624259, 0.110771492566729,
0.231568717795892, 0.343678583469598, 0.417765783988069,
0.543630197644543, 0.617066585225825, 0.551940687323939,
0.3881931228018, 0.143292861456729, -0.230048095778794,
-0.608587759897659, -0.923961250195008, -1.14891815112978,
-1.19665786296363, -1.1789012635512, -1.10935095074399,
-0.941081514138443, -0.910241718967026, -1.07682140512536,
-1.17709538508522, -1.15969924717635, -1.0941988598127,
-0.962591732144873, -0.748160451318026, -0.528571748907502,
-0.284920908501252, -0.167435308491747, -0.17292177531909,
-0.133512633186426, -0.0575134703799466, -0.0148263148014149,
-0.0160337792989139, -0.0554584325161711, -0.130434364400073,
-0.233900033392714, -0.396007338614279, -0.431874478021995,
-0.246543278110549, 0.025005206613342, 0.221908283105076,
0.357563520763712, 0.511650884680102, 0.601295970807038,
0.498973579021662, 0.340913756050298, 0.244181881994926,
0.236940378533344, 0.281832258516408, 0.282513813795931,
0.224895815067767, 0.191201771796929, 0.151897174358836,
0.129004290258214, 0.119868194363766, 0.0648848752762179,
0.0183626995917986, -0.0128443250980258, -0.0719251784124633,
-0.106907589669899, -0.0675761295400602, 0.0123631442640503,
0.126180371730547, 0.265102237955039, 0.273523680030657,
0.0972290782595247, -0.142448693454078, -0.228562798985932,
-0.121628246688693, 0.0240335204311867, 0.0849193254488196,
0.131514900078828, 0.216523066840868, 0.312412970824987,
0.457038830207084, 0.655634743286152, 0.772465035260519,
0.840421864768904, 0.979724778716083, 1.23058202032875,
1.41287663498809, 1.43603381593368, 1.44950123579924, 1.49692964714794,
1.54136021082265, 1.56991010929008, 1.53587118188975, 1.41464784914125,
1.30847208666164, 1.20788510101057, 1.06104794130083, 0.89541394317275,
0.766543954757043, 0.608064268112436, 0.41715180179415,
0.255930123834988, 0.189210753671023, 0.136968305714759,
0.0858977852079219, -0.0590249536546675, -0.237141054667225,
-0.266901060250191, -0.18309204067699, -0.100759410655185,
-0.0733998410814375, -0.114898179604883, -0.200658452650462,
-0.287920586435838, -0.319294666491079, -0.350093769522629,
-0.486031736813438, -0.669282954718652, -0.752961049842182,
-0.838225166509412, -0.875716201751143, -0.809495554429951,
-0.747202978963336, -0.732286988875573, -0.712119875054199,
-0.660066414345686, -0.564562605561388, -0.523625732744415,
-0.55761573919802, -0.61938366167532, -0.790030126240641,
-1.01174566964521, -1.1701726455497, -1.29022875877389,
-1.41208307964868, -1.42527785880682, -1.40356352989604,
-1.42621664599746, -1.44714666975274, -1.46249874315943,
-1.42013335397005, -1.33922386225309, -1.2525306160348,
-1.10467963606102, -0.977615330769052, -0.954703763649624,
-0.99204510344673, -1.05010534049869, -1.12300487568996,
-1.09140964328177, -1.05449186706915, -1.05958481544057,
-1.08302728403599, -1.1684005292351, -1.26373150429955,
-1.23719670905295, -1.15267143667984, -1.04257493223994,
-0.928566113379057, -0.847561753362057, -0.817647846894172,
-0.827226456102374, -0.873685313811831, -0.958741885546485,
-1.059243667044, -1.10323995309114, -1.0526800355481,
-0.933885680938229, -0.907245927707086, -1.05662939243734,
-1.17440720725531, -1.17931151782203, -1.16190739318809,
-1.10565169811399, -1.09217946395076, -1.16191737755664,
-1.35028885085524, -1.61395523943264, -1.7276366638137,
-1.63331035552122, -1.4942819503081, -1.35523054654587,
-1.21202544075899, -1.03443615716924, -0.854649727499557,
-0.708080209651826, -0.649021262657334, -0.671688892324053,
-0.769949886045005, -0.894131807047623, -1.12236468382323,
-1.46769238938118, -1.78612220686872, -2.06442530761525,
-2.26730789138649, -2.31094540720024, -2.24577550663983,
-2.11314540858449, -1.94207932470027, -1.78231885102186,
-1.66734592415113, -1.66469483780121, -1.74681362376797,
-1.82522829675761, -1.80297493047025, -1.72699275614067,
-1.60740762829094, -1.4967341387687, -1.44300563470721,
-1.41866478661623, -1.34135700144459, -1.2058998400417,
-1.12683035245198, -1.12251655195675, -1.15320365556187,
-1.23371513776422, -1.30693474162044, -1.28952626791373,
-1.23323895888543, -1.20451787065003, -1.18991394065867,
-1.1319854649629, -1.05603671255299, -0.916682541826711,
-0.764339964142714, -0.627598785827212, -0.532109263650072,
-0.536233792935921, -0.551569448467036, -0.54113104348886,
-0.501954756203302, -0.49517418651604, -0.502813296564633,
-0.562210707433538, -0.649104772967413, -0.745786911928882,
-0.785783291765771, -0.848906058924583, -0.932455447147047,
-0.932261114557227, -0.855898736393796, -0.719753243180257,
-0.557360040755715, -0.541757630718013, -0.628781625498432,
-0.585575632027058, -0.45162342385689, -0.269289199866511,
-0.17084719266092, -0.223107026230434, -0.380381758279647,
-0.488828288672335, -0.429801193639047, -0.322235096402257,
-0.253817326074672, -0.280842495690841, -0.42522466613064,
-0.627765884463544, -0.65693993269031, -0.528991906092331,
-0.379926715242599, -0.219870900038208, -0.0200893602017818,
0.137865230321685, 0.157970158209918, 0.114349201323117,
0.0992317791640881, 0.0442458584478272, 0.0324183455549512,
0.0505707162461261, -0.0040390011576946, -0.0423295344351358,
-0.0839729684261844, -0.142515747749608, -0.198500641529822,
-0.205952615714184, -0.162565241826911, -0.0772891825938796,
0.0464061059020459, 0.191149398713796, 0.29120934288205,
0.286477917295005, 0.323070485820665, 0.485416999986366,
0.796330611660016, 1.19133832671853, 1.47469155831656, 1.57753133341042,
1.67939461497574, 1.76339876984056, 1.6865598255087, 1.45887632303092,
1.1645445858065, 0.889706368833933, 0.714327382060496,
0.594717188304984, 0.53652530918192, 0.5729291242531, 0.670301972992848,
0.79462369567164, 0.834537272227415, 0.815460447269463,
0.761955946666577, 0.627688997306571, 0.565285313644623,
0.587900308025818, 0.611834294875931, 0.716295791889387,
0.852258536831015, 0.919136949711752, 0.837798854849957,
0.669893847588072, 0.57181611699064, 0.554719128561828,
0.51139080031451, 0.502323367515471, 0.486699980251865,
0.481975558638899, 0.651174275594057, 0.830526180924872,
0.955738164700193, 1.15194211262911, 1.31394452215514, 1.4108522783447,
1.50538292764161, 1.62488920349008, 1.7232682490874, 1.79316316910286,
1.80004405463083, 1.73610816980131, 1.59062127844383, 1.39785780989225,
1.28125281312554, 1.2218292307102, 1.27801867110202, 1.37777628520668,
1.45222100842973, 1.56181785977447, 1.70736793018814, 1.77669039334413,
1.75785352935172, 1.68061708332685, 1.59799917385839, 1.54227903274745,
1.59093483486588, 1.66587814600649, 1.83553422670756, 2.02673499781169,
2.11355272488884, 2.07804632618165, 1.97764173492424, 1.80679080772779,
1.56760421740852, 1.2480749235443, 0.890608884147124, 0.714804782171239,
0.749545234729518, 0.92351656168246, 1.16345492518157, 1.32465022328066,
1.3798870978647, 1.35346502758196, 1.2583667317647, 1.1450851818241,
1.13548261461194, 1.14264385510825, 1.12121069757328, 1.13025562033635,
1.19730072628453, 1.24532754198411, 1.17097889309444, 1.05138680198402,
0.935557876276047, 0.845870037520178, 0.768439495845995,
0.728301899941035, 0.801975278230214, 0.984087305572356,
1.14313793313854, 1.18223723981526, 1.13701671166594, 1.0692916748677,
0.918833644612282, 0.800224241549448, 0.89339761055534,
1.16283939062793, 1.48829745051483, 1.84853632229687, 2.13420088156796,
2.11319372581203, 1.67040444096722, 0.929833570971823,
0.175160989922847, -0.352135967909758, -0.590973638592787,
-0.527948858589932, -0.242938856431937, 0.133953766088817,
0.575472716308111, 0.947320726736025, 1.06315270113131,
0.966407449373277, 0.782803922902358, 0.551482179713421,
0.402217590163819, 0.385697789888562, 0.430621233840578,
0.568920473627929, 0.794430169676294, 1.03069174120624, 1.2206497306642,
1.21599702615461, 0.991399245496596, 0.707570419085005,
0.511305976953903, 0.569851677944658, 0.811357987854174,
1.0364163330529, 1.13671984250899, 1.15437756151192, 1.0850039910469,
0.905092199844644, 0.655732352350028, 0.456449976122476,
0.381600321746823, 0.443822004140664, 0.611963813168142,
0.863496883415238, 1.119514291033, 1.28780537355631, 1.26057089962777,
1.07698866743352, 0.837774800361161, 0.630788502433085,
0.474325420984756, 0.343347524386004, 0.314483582330224,
0.362712006710568, 0.367870468745009, 0.241024105487677,
0.150393777239721, 0.178848655134509, 0.211657619056946,
0.132060177111698, -0.0357366835698522, -0.0675051309414985,
0.0313450101078155, 0.175182560052458, 0.334341412290213,
0.462081269807891, 0.552679294811998, 0.582315666515523,
0.593300574388584, 0.563658514329252, 0.543858547159614,
0.493538146654679, 0.488651777530101, 0.517225542955115,
0.560789494114279, 0.676545735996568, 0.689771561917043,
0.535196710943581, 0.291985782477236, 0.0407625816600713,
-0.0684161937454361, -0.0135002388257795, 0.113481365870017,
0.220852568163427, 0.278169128013174, 0.325238873362639,
0.3378000435214, 0.256811185439575, 0.102387728642926,
0.0211680265930651, -0.0644590345766601, -0.117130836522483,
-0.102642448286446, -0.0302770117653403, 0.0550905318816907,
0.137592052057862, 0.249477903041839, 0.352806679464548,
0.395834533780003, 0.393571118959605, 0.410069045109821,
0.56871748039189, 0.865827838751743, 1.24271541074494, 1.56218643577412,
1.79444065830685, 1.81582145224672, 1.66604745289672, 1.39224887842584,
1.07923217136286, 0.823803243435867, 0.635416146416351,
0.457781202211059, 0.236497577279124, 0.0798993300853926,
0.07974523231587, 0.0888811228263549, 0.069386864364625,
0.0724149311836036, -0.0200028093431387, -0.23211358854482,
-0.384525338952281, -0.444185226432879, -0.501291109657736,
-0.538929385868694, -0.550311197010499, -0.532031206938579,
-0.537021323912378, -0.565638416584189, -0.595044378742803,
-0.629509293040991, -0.674753341795489, -0.738170291721662,
-0.819409099848003, -0.921862442231271, -0.982234428044937,
-1.01133540055726, -1.00696490399218, -0.97015529294236,
-0.915770340245823, -0.863706112953856, -0.746073025695205,
-0.586791963429928, -0.517394985357598, -0.541814214494076,
-0.551916244421006, -0.529071292702042, -0.552531382757597,
-0.5958524623911, -0.599297648541731, -0.593949215558269,
-0.513303067510339, -0.425956065586757, -0.39560699434522,
-0.483688667941355, -0.644661724835611, -0.758452262373203,
-0.767478614229129, -0.755069184194305, -0.743454877659154,
-0.683332721245281, -0.685747546922224, -0.670737660547813,
-0.651974652253416, -0.657444296027068, -0.583342650698565,
-0.393809796314688, -0.184663129219998, -0.0407966510285169,
-0.00119790644492183, -0.059539395480934, -0.122087438590216,
-0.143207948683499, -0.191541596885139, -0.274610513358882,
-0.417804789200055, -0.47424615598978, -0.469874824317331,
-0.520829300594365, -0.594983546747293, -0.633878164301939,
-0.598752361983404, -0.494582779198314, -0.30570174012938,
-0.0958950376254408, 0.0591162353759443, 0.113799812769634,
0.0685421819450193, 0.0110927470859023, -0.0862137312584731,
-0.208688993619858, -0.317461634478134, -0.392944156838633,
-0.375093587137848, -0.284044164211859, -0.120889220243195,
0.0240617193229019, 0.1560241825316, 0.285191703932438,
0.388916602280026, 0.44911553510911, 0.387527021302871,
0.274008184116546, 0.240434409426531, 0.379666984317094,
0.631562980412536 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment