MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / processWithBlockSize

Function processWithBlockSize

tests/spectral_nr_test.cpp:235–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235std::vector<float> processWithBlockSize(const std::vector<float>& input,
236 int blockSamples)
237{
238 SpectralNR nr;
239 nr.setGainMethod(2);
240
241 std::vector<float> output(input.size());
242 int offset = 0;
243 while (offset < static_cast<int>(input.size())) {
244 const int count = std::min(blockSamples,
245 static_cast<int>(input.size()) - offset);
246 nr.process(input.data() + offset, output.data() + offset, count);
247 offset += count;
248 }
249 return output;
250}
251
252void test_block_size_invariance()
253{

Callers 1

Calls 4

setGainMethodMethod · 0.80
sizeMethod · 0.45
processMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected