I'm using double precision floating point variables within an application I'm making.
I normalize some ranges of values. Going from (for example; I've many ranges) -48.0 to 48.0 to 0.0 to 1.0, using this simply function:
double ToNormalizedParam(double nonNormalizedValue, double min, double max, double shape) {
return pow((nonNormalizedValue - min) / (max - min), 1.0 / shape);
}
I'd like to know the differences in available and distinct values mapping from a range to another.
Is there a ready-to-go function in C++? I've looked at numeric_limits, but I can't find anything useful.