MCPcopy Create free account
hub / github.com/KDE/labplot / nsl_baseline_remove_maximum

Function nsl_baseline_remove_maximum

src/backend/nsl/nsl_baseline.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void nsl_baseline_remove_maximum(double* data, const size_t n) {
53 const double max = nsl_stats_maximum(data, n, nullptr);
54
55 for (size_t i = 0; i < n; i++)
56 data[i] -= max;
57}
58
59void nsl_baseline_remove_mean(double* data, const size_t n) {
60 const double mean = gsl_stats_mean(data, 1, n);

Callers 2

testBaselineMaximumMethod · 0.85
testBaselineMaximum2Method · 0.85

Calls 1

nsl_stats_maximumFunction · 0.85

Tested by 2

testBaselineMaximumMethod · 0.68
testBaselineMaximum2Method · 0.68