Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ ScaleChartData
Function
ScaleChartData
libs/map/chart_generator.cpp:89–93 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
87
} // namespace
88
89
void ScaleChartData(vector<double> & chartData, double scale)
90
{
91
for (size_t i = 0; i < chartData.size(); ++i)
92
chartData[i] *= scale;
93
}
94
95
void ShiftChartData(vector<double> & chartData, double shift)
96
{
Callers
2
GenerateYAxisChartData
Function · 0.85
UNIT_TEST
Function · 0.85
Calls
1
size
Method · 0.45
Tested by
1
UNIT_TEST
Function · 0.68