mirror of https://github.com/rusefi/RomRaider.git
added alpha version of maf scaler
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@778 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
f49e30d36d
commit
22f1a6d0f8
|
@ -54,6 +54,7 @@ public final class XYTrendline extends AbstractXYDataset {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized double[] calculate(double[] x) {
|
public synchronized double[] calculate(double[] x) {
|
||||||
|
if (polyfit == null) throw new IllegalStateException("Interpolation required");
|
||||||
Polyval polyval = new Polyval(x, polyfit);
|
Polyval polyval = new Polyval(x, polyfit);
|
||||||
return polyval.getYout();
|
return polyval.getYout();
|
||||||
}
|
}
|
||||||
|
@ -62,5 +63,6 @@ public final class XYTrendline extends AbstractXYDataset {
|
||||||
items.clear();
|
items.clear();
|
||||||
xVals = new double[0];
|
xVals = new double[0];
|
||||||
yPoly = new double[0];
|
yPoly = new double[0];
|
||||||
|
polyfit = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue