MCPcopy Create free account
hub / github.com/audacity/audacity / Abs

Method Abs

src/import/FormatClassifier.cpp:293–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292
293void FormatClassifier::Abs(float* in, float* out, size_t len)
294{
295 for (unsigned int n = 0; n < len; n++)
296 {
297 if (in[n] < 0.0f)
298 {
299 out[n] = -in[n];
300 }
301 else
302 {
303 out[n] = in[n];
304 }
305 }
306}
307
308float FormatClassifier::Mean(float* in, size_t len)
309{

Callers 1

DragMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected