-- Do not edit! This file was generated by blocks/signal/pulsematchedfilter_spec.py

local radio = require('radio')
local jigs = require('tests.jigs')

jigs.TestBlock(radio.PulseMatchedFilterBlock, {
    {
        desc = "0.1 baudrate, invert false, 256 Float32 input, 256 Float32 output",
        args = {0.2, false},
        inputs = {radio.types.Float32.vector_from_array({-0.73127151, 0.69486749, 0.52754927, -0.48986191, -0.00912983, -0.10101787, 0.30318594, 0.57744670, -0.81228077, -0.94330502, 0.67153019, -0.13446586, 0.52456015, -0.99578792, -0.10922561, 0.44308007, -0.54247558, 0.89054137, 0.80285490, -0.93882000, -0.94910830, 0.08282494, 0.87829834, -0.23759152, -0.56680119, -0.15576684, -0.94191837, -0.55661666, -0.12422481, -0.00837552, -0.53383112, -0.53826690, -0.56243795, -0.08079307, -0.42043677, -0.95702058, 0.67515594, 0.11290865, 0.28458872, -0.62818748, 0.98508680, 0.71989304, -0.75822008, -0.33460963, 0.44296879, 0.42238355, 0.87288117, -0.15578599, 0.66007137, 0.34061113, -0.39326301, 0.17516121, 0.76495802, 0.69239485, 0.01056764, 0.17800452, -0.93094832, -0.51452005, 0.59480852, -0.17137200, -0.65398520, 0.09759752, 0.40608153, 0.34897169, -0.25059396, -0.12207674, 0.01685298, 0.55688524, 0.04187684, -0.21348982, -0.02061296, -0.94085008, -0.91302544, 0.40676415, 0.96637541, 0.18636747, -0.21280062, -0.65930158, 0.00447712, 0.96415329, 0.54104626, 0.07923490, 0.72057962, -0.53564775, 0.02754333, 0.90493482, 0.15558961, -0.08173654, -0.46144104, 0.09599262, 0.91423255, -0.98858166, 0.56731045, 0.64097184, 0.77235913, 0.48100683, 0.61827981, 0.03735657, 0.12271573, -0.14781864, -0.88775343, 0.74002033, 0.13999867, -0.60032117, 0.00944094, -0.03014978, -0.28642008, -0.30784416, 0.07695759, 0.24697889, 0.22490492, -0.08370640, -0.94405001, -0.54078996, -0.64557749, 0.16892174, 0.72201771, 0.59687787, 0.59419513, 0.63287473, -0.48941192, 0.68348968, 0.34622705, -0.83353174, -0.96661872, -0.97087997, 0.51117355, -0.50088155, -0.78102273, 0.24960417, -0.31115428, -0.86096931, -0.68074894, 0.05476080, -0.66371012, -0.45417112, 0.42317989, -0.09059674, -0.35599643, -0.05245798, -0.95273077, -0.22688580, -0.15816264, -0.62392139, -0.78247666, 0.79963702, 0.02023196, -0.58181804, 0.21129727, 0.63407934, -0.95836377, -0.96427095, -0.70707649, 0.43767095, -0.67954481, 0.40921125, 0.35635161, 0.08940433, -0.55880052, 0.95118904, 0.59562171, 0.03319904, -0.55360842, 0.29701284, -0.21020398, 0.15169193, -0.35750839, 0.26189572, -0.88242978, -0.40278813, 0.93580663, 0.75106847, -0.38722676, 0.71702880, -0.37927276, 0.87857687, 0.48768425, -0.16765547, -0.49528381, -0.98303950, 0.75743574, -0.92416686, 0.63882822, 0.92440224, 0.14056113, -0.65696579, 0.73556215, 0.94755048, 0.40804628, 0.01774749, -0.24406233, -0.30613822, -0.58847648, 0.34830603, -0.13409975, -0.61176270, -0.79115158, 0.33191505, -0.40785465, -0.00040016, -0.34930867, 0.74324304, 0.79935658, -0.96381402, -0.59829396, -0.34451860, 0.97409946, 0.56540078, -0.32180870, -0.57394040, 0.34891015, 0.67540216, 0.86437494, -0.31230038, 0.76478642, 0.37422037, -0.03100256, 0.97101647, -0.53071910, 0.45093039, -0.83063954, -0.66061169, 0.82197559, -0.57406360, 0.51823235, 0.20041765, 0.68226439, -0.26378399, -0.31942952, -0.41756943, 0.73483962, 0.20796506, 0.90861493, 0.77453023, -0.72930807, 0.10234095, -0.79145002, -0.92172438, -0.85361314, 0.73233670, 0.57623291, 0.65701193, -0.31820506, 0.23037209, 0.56380719, -0.24392074, 0.14156306, -0.55257183, -0.83651346, -0.46655273, 0.78153634, 0.12889367, 0.85013437, -0.08446148, -0.44563445, 0.57402933})},
        outputs = {radio.types.Float32.vector_from_array({-0.73127151, -0.03640401, 0.49114525, 0.00128335, -0.00784648, -0.10886435, 0.19432159, 0.77176827, -0.04051249, -0.98381752, 0.41898417, -0.41034916, -0.41333827, -0.91926432, -1.01936007, -0.47526214, -1.32092369, -1.00782895, 0.60730672, 0.61179173, -1.00884676, -0.79155600, -0.43781781, 0.32037860, -0.13719699, -0.73604387, -1.13548672, -2.58264470, -3.50972438, -2.57927990, -2.16400266, -2.78509450, -4.22583103, -4.06903267, -3.92266798, -4.72392178, -3.10684752, -2.43732214, -2.02850866, -2.64832067, -1.12940264, 0.12875730, -0.06702483, -0.32084137, 0.54256415, 1.92196834, 2.11969352, 1.85099888, 2.22648144, 3.19528008, 1.81693029, 1.27219856, 2.79537654, 3.82238102, 3.38997984, 3.14560103, 1.34177148, 0.98303735, 0.91777450, 0.40579140, 0.14506920, 0.06750551, -0.29137099, -0.63479418, -0.89595574, -1.19603705, -0.24823572, 0.82316959, 0.27023789, 0.22812009, 0.86149234, -0.17695527, -1.49606228, -1.43826973, -0.22130041, 0.08714379, -0.14250980, -1.35869658, -1.39609635, -0.21845324, 0.34320599, 1.36329091, 2.99689603, 2.05448413, 1.11565208, 1.83421946, 2.20260954, 2.78017473, 2.31425643, 1.44609582, 1.81928217, 0.75146556, 0.59819639, 1.77481604, 2.51963186, 2.09570384, 2.55839396, 2.67748713, 3.26164389, 3.01783252, 1.21584666, 2.94444871, 2.51713681, 1.27584386, 0.51292562, 0.00176904, -0.90293086, -1.24813163, -1.29388976, -0.89909220, 0.21356617, -0.61016059, -1.69420922, -1.63467801, -2.28969646, -2.09062505, -1.08218718, -0.17746514, 0.33977240, 0.72566825, 0.01135138, 0.77854747, 2.06882453, 1.77608275, 1.45504153, 0.31523982, 0.10439566, -0.99336374, -2.36858153, -2.75185227, -2.57359457, -4.11805344, -5.14502954, -4.25673676, -3.95382833, -3.43711948, -3.52511311, -3.11482835, -2.68980217, -2.99186420, -3.63344073, -2.99935722, -2.47677088, -3.15545321, -3.27421975, -2.02041149, -2.42335939, -2.91458082, -2.34728694, -1.66074967, -1.66638267, -2.40376782, -2.95268178, -1.89108944, -1.78815758, -2.17858338, -1.84246361, -1.17124128, -1.94133902, -1.62422931, -0.07024388, 0.92722613, 1.08069420, 0.94003606, 1.40937686, 1.15185761, 0.43799758, 0.61048895, 0.28685969, -1.06711745, -0.72693253, -0.00906311, 0.15731855, 0.57733452, 0.40826571, 1.13515067, 1.98034334, 1.55079210, 1.93793809, 1.35768676, 1.17931581, -0.49591950, 0.53013551, 0.73750889, 1.25734282, -0.27819985, -0.03032196, 1.08488393, 1.98821402, 2.98900104, 1.98750293, 2.60553169, 1.37822688, 0.80213070, 0.52746981, 0.57267290, -0.95404083, -1.56967628, -2.38557720, -2.40372491, -2.50897121, -1.45958984, -0.07175682, -1.38387692, -1.84807110, -1.58082700, 0.18442407, 0.41790980, 0.50395572, -0.06958449, 0.62863433, 0.56079346, 0.62581182, 1.27732539, 2.64040589, 3.35914469, 2.35404277, 2.75965858, 2.55074811, 3.57561874, 2.39606905, 1.06005526, 1.01765597, 0.75589275, 0.50933868, 0.33553594, 1.04880285, -0.18599756, 0.02529202, -0.84320778, 0.72227138, 1.59084809, 1.67748749, 3.02608132, 1.77854085, 1.68046415, 0.20674977, -0.45119062, -0.98537421, 0.16453189, 0.00592518, 0.45497203, -0.77184796, -1.31600606, -0.02289084, -0.36915255, 0.56386054, 0.93301308, 0.95011276, -0.24877666, -0.04347323, -0.57159150, 0.59674793, 0.28191438, -0.72752726, 0.09042281})}
    },
    {
        desc = "0.1 baudrate, invert true, 256 Float32 input, 256 Float32 output",
        args = {0.2, true},
        inputs = {radio.types.Float32.vector_from_array({-0.73127151, 0.69486749, 0.52754927, -0.48986191, -0.00912983, -0.10101787, 0.30318594, 0.57744670, -0.81228077, -0.94330502, 0.67153019, -0.13446586, 0.52456015, -0.99578792, -0.10922561, 0.44308007, -0.54247558, 0.89054137, 0.80285490, -0.93882000, -0.94910830, 0.08282494, 0.87829834, -0.23759152, -0.56680119, -0.15576684, -0.94191837, -0.55661666, -0.12422481, -0.00837552, -0.53383112, -0.53826690, -0.56243795, -0.08079307, -0.42043677, -0.95702058, 0.67515594, 0.11290865, 0.28458872, -0.62818748, 0.98508680, 0.71989304, -0.75822008, -0.33460963, 0.44296879, 0.42238355, 0.87288117, -0.15578599, 0.66007137, 0.34061113, -0.39326301, 0.17516121, 0.76495802, 0.69239485, 0.01056764, 0.17800452, -0.93094832, -0.51452005, 0.59480852, -0.17137200, -0.65398520, 0.09759752, 0.40608153, 0.34897169, -0.25059396, -0.12207674, 0.01685298, 0.55688524, 0.04187684, -0.21348982, -0.02061296, -0.94085008, -0.91302544, 0.40676415, 0.96637541, 0.18636747, -0.21280062, -0.65930158, 0.00447712, 0.96415329, 0.54104626, 0.07923490, 0.72057962, -0.53564775, 0.02754333, 0.90493482, 0.15558961, -0.08173654, -0.46144104, 0.09599262, 0.91423255, -0.98858166, 0.56731045, 0.64097184, 0.77235913, 0.48100683, 0.61827981, 0.03735657, 0.12271573, -0.14781864, -0.88775343, 0.74002033, 0.13999867, -0.60032117, 0.00944094, -0.03014978, -0.28642008, -0.30784416, 0.07695759, 0.24697889, 0.22490492, -0.08370640, -0.94405001, -0.54078996, -0.64557749, 0.16892174, 0.72201771, 0.59687787, 0.59419513, 0.63287473, -0.48941192, 0.68348968, 0.34622705, -0.83353174, -0.96661872, -0.97087997, 0.51117355, -0.50088155, -0.78102273, 0.24960417, -0.31115428, -0.86096931, -0.68074894, 0.05476080, -0.66371012, -0.45417112, 0.42317989, -0.09059674, -0.35599643, -0.05245798, -0.95273077, -0.22688580, -0.15816264, -0.62392139, -0.78247666, 0.79963702, 0.02023196, -0.58181804, 0.21129727, 0.63407934, -0.95836377, -0.96427095, -0.70707649, 0.43767095, -0.67954481, 0.40921125, 0.35635161, 0.08940433, -0.55880052, 0.95118904, 0.59562171, 0.03319904, -0.55360842, 0.29701284, -0.21020398, 0.15169193, -0.35750839, 0.26189572, -0.88242978, -0.40278813, 0.93580663, 0.75106847, -0.38722676, 0.71702880, -0.37927276, 0.87857687, 0.48768425, -0.16765547, -0.49528381, -0.98303950, 0.75743574, -0.92416686, 0.63882822, 0.92440224, 0.14056113, -0.65696579, 0.73556215, 0.94755048, 0.40804628, 0.01774749, -0.24406233, -0.30613822, -0.58847648, 0.34830603, -0.13409975, -0.61176270, -0.79115158, 0.33191505, -0.40785465, -0.00040016, -0.34930867, 0.74324304, 0.79935658, -0.96381402, -0.59829396, -0.34451860, 0.97409946, 0.56540078, -0.32180870, -0.57394040, 0.34891015, 0.67540216, 0.86437494, -0.31230038, 0.76478642, 0.37422037, -0.03100256, 0.97101647, -0.53071910, 0.45093039, -0.83063954, -0.66061169, 0.82197559, -0.57406360, 0.51823235, 0.20041765, 0.68226439, -0.26378399, -0.31942952, -0.41756943, 0.73483962, 0.20796506, 0.90861493, 0.77453023, -0.72930807, 0.10234095, -0.79145002, -0.92172438, -0.85361314, 0.73233670, 0.57623291, 0.65701193, -0.31820506, 0.23037209, 0.56380719, -0.24392074, 0.14156306, -0.55257183, -0.83651346, -0.46655273, 0.78153634, 0.12889367, 0.85013437, -0.08446148, -0.44563445, 0.57402933})},
        outputs = {radio.types.Float32.vector_from_array({0.73127151, 0.03640401, -0.49114525, -0.00128335, 0.00784648, 0.10886435, -0.19432159, -0.77176827, 0.04051249, 0.98381752, -0.41898417, 0.41034916, 0.41333827, 0.91926432, 1.01936007, 0.47526214, 1.32092369, 1.00782895, -0.60730672, -0.61179173, 1.00884676, 0.79155600, 0.43781781, -0.32037860, 0.13719699, 0.73604387, 1.13548672, 2.58264470, 3.50972438, 2.57927990, 2.16400266, 2.78509450, 4.22583103, 4.06903267, 3.92266798, 4.72392178, 3.10684752, 2.43732214, 2.02850866, 2.64832067, 1.12940264, -0.12875730, 0.06702483, 0.32084137, -0.54256415, -1.92196834, -2.11969352, -1.85099888, -2.22648144, -3.19528008, -1.81693029, -1.27219856, -2.79537654, -3.82238102, -3.38997984, -3.14560103, -1.34177148, -0.98303735, -0.91777450, -0.40579140, -0.14506920, -0.06750551, 0.29137099, 0.63479418, 0.89595574, 1.19603705, 0.24823572, -0.82316959, -0.27023789, -0.22812009, -0.86149234, 0.17695527, 1.49606228, 1.43826973, 0.22130041, -0.08714379, 0.14250980, 1.35869658, 1.39609635, 0.21845324, -0.34320599, -1.36329091, -2.99689603, -2.05448413, -1.11565208, -1.83421946, -2.20260954, -2.78017473, -2.31425643, -1.44609582, -1.81928217, -0.75146556, -0.59819639, -1.77481604, -2.51963186, -2.09570384, -2.55839396, -2.67748713, -3.26164389, -3.01783252, -1.21584666, -2.94444871, -2.51713681, -1.27584386, -0.51292562, -0.00176904, 0.90293086, 1.24813163, 1.29388976, 0.89909220, -0.21356617, 0.61016059, 1.69420922, 1.63467801, 2.28969646, 2.09062505, 1.08218718, 0.17746514, -0.33977240, -0.72566825, -0.01135138, -0.77854747, -2.06882453, -1.77608275, -1.45504153, -0.31523982, -0.10439566, 0.99336374, 2.36858153, 2.75185227, 2.57359457, 4.11805344, 5.14502954, 4.25673676, 3.95382833, 3.43711948, 3.52511311, 3.11482835, 2.68980217, 2.99186420, 3.63344073, 2.99935722, 2.47677088, 3.15545321, 3.27421975, 2.02041149, 2.42335939, 2.91458082, 2.34728694, 1.66074967, 1.66638267, 2.40376782, 2.95268178, 1.89108944, 1.78815758, 2.17858338, 1.84246361, 1.17124128, 1.94133902, 1.62422931, 0.07024388, -0.92722613, -1.08069420, -0.94003606, -1.40937686, -1.15185761, -0.43799758, -0.61048895, -0.28685969, 1.06711745, 0.72693253, 0.00906311, -0.15731855, -0.57733452, -0.40826571, -1.13515067, -1.98034334, -1.55079210, -1.93793809, -1.35768676, -1.17931581, 0.49591950, -0.53013551, -0.73750889, -1.25734282, 0.27819985, 0.03032196, -1.08488393, -1.98821402, -2.98900104, -1.98750293, -2.60553169, -1.37822688, -0.80213070, -0.52746981, -0.57267290, 0.95404083, 1.56967628, 2.38557720, 2.40372491, 2.50897121, 1.45958984, 0.07175682, 1.38387692, 1.84807110, 1.58082700, -0.18442407, -0.41790980, -0.50395572, 0.06958449, -0.62863433, -0.56079346, -0.62581182, -1.27732539, -2.64040589, -3.35914469, -2.35404277, -2.75965858, -2.55074811, -3.57561874, -2.39606905, -1.06005526, -1.01765597, -0.75589275, -0.50933868, -0.33553594, -1.04880285, 0.18599756, -0.02529202, 0.84320778, -0.72227138, -1.59084809, -1.67748749, -3.02608132, -1.77854085, -1.68046415, -0.20674977, 0.45119062, 0.98537421, -0.16453189, -0.00592518, -0.45497203, 0.77184796, 1.31600606, 0.02289084, 0.36915255, -0.56386054, -0.93301308, -0.95011276, 0.24877666, 0.04347323, 0.57159150, -0.59674793, -0.28191438, 0.72752726, -0.09042281})}
    },
}, {epsilon = 1.0e-06})
