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

Function l2NormStereo

tests/client_reverb_test.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51float l2NormStereo(const float* data, int frames)
52{
53 double sumSq = 0.0;
54 const int samples = frames * 2;
55 for (int i = 0; i < samples; ++i) sumSq += data[i] * data[i];
56 return static_cast<float>(std::sqrt(sumSq));
57}
58
59float peakAbsStereo(const float* data, int frames)
60{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected