78 static std::vector<double>
getValueTable(
const std::string& dataString);
A generic class to operate on LinearApproxMap instances.
std::map< double, double > LinearApproxMap
static double getInterpolatedValue(const LinearApproxMap &map, double axisValue)
Get interpolated value.
static void setValues(LinearApproxMap &map, const std::string &heightString)
Set height values for existing axis values.
static void scalePoints(LinearApproxMap &map, double keyFactor, double valueFactor)
Scale both key and values.
static void scaleValues(LinearApproxMap &map, const double factor)
Scale values.
static bool setPoints(LinearApproxMap &map, const std::string &axisString, const std::string &heightString)
Set data points.
static std::vector< double > getValueTable(const std::string &dataString)
split string into data values
static double getMaximumValue(const LinearApproxMap &map)
Get the largest height value.
static double getMinimumValue(const LinearApproxMap &map)
Get the smallest height value.