public static double Normalise(NormalisationValues normalVals, double value) { return (value - normalVals.c) * ((normalVals.b - normalVals.a) / (normalVals.d - normalVals.c)) + normalVals.a; }
public static float Normalise(NormalisationValues normalVals, float value) { return (value - normalVals.c) * ((normalVals.b - normalVals.a) / (normalVals.d - normalVals.c)) + normalVals.a; }