MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / normalize_range

Function normalize_range

Examples/NoModules/Chapter 08/Ex8_13.cpp:87–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87double* normalize_range(double data[], size_t count)
88{
89 shift_range(data, count, -(*smallest(data, count)));
90 return scale_range(data, count, *largest(data, count));
91}

Callers 1

mainFunction · 0.70

Calls 4

shift_rangeFunction · 0.70
smallestFunction · 0.70
scale_rangeFunction · 0.70
largestFunction · 0.70

Tested by

no test coverage detected