示例#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;
 }