Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
88
std::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
main
Function · 0.70
Calls
4
shift_range
Function · 0.70
smallest
Function · 0.70
scale_range
Function · 0.70
largest
Function · 0.70
Tested by
no test coverage detected