fixed value going under 0

This commit is contained in:
ori agranat
2019-09-28 14:27:50 -07:00
parent 54412657ec
commit 55902c45e7

View File

@@ -8,7 +8,7 @@ public class MathHandler {
double b = -0.05;
double k = 200;
if (x < 50){
bias = -1.339;
bias = -1.338;
}
return ((k / (1 + Math.pow(Math.E,(a + (b * x))))) + bias);
}