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