Commit c5e91371 authored by Marc Schiller's avatar Marc Schiller
Browse files

Fixed logarithmic model.

parent 27cd51c7
......@@ -59,7 +59,7 @@ public class LogarithmicModel extends AbstractModel {
@Override
public double getDouble(int users) {
double tmp = this.a * Math.log(this.c * users + this.d) + this.b;
double tmp = this.a * Math.log(this.c * (users - this.d)) + this.b;
if(tmp < 0) {
return 0;
} else {
......@@ -69,7 +69,7 @@ public class LogarithmicModel extends AbstractModel {
@Override
public String toString() {
return "Logarithmic Model: log(u) = " + this.a + " * ln(" + this.c + " * u + " + this.d + ") + " + this.b;
return "Logarithmic Model: log(u) = " + this.a + " * ln(" + this.c + " * (u - " + this.d + ")) + " + this.b;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment