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

Function normalize_range

Exercises/Modules/Chapter 09/Soln9_03.cpp:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88std::span<double> normalize_range(std::span<double> data)
89{
90 shift_range(data, -(*smallest(data)));
91 return scale_range(data, *largest(data));
92}

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