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:
kascade 2007-08-20 13:26:26 +00:00
parent f49e30d36d
commit 22f1a6d0f8
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public final class XYTrendline extends AbstractXYDataset {
}
public synchronized double[] calculate(double[] x) {
if (polyfit == null) throw new IllegalStateException("Interpolation required");
Polyval polyval = new Polyval(x, polyfit);
return polyval.getYout();
}
@ -62,5 +63,6 @@ public final class XYTrendline extends AbstractXYDataset {
items.clear();
xVals = new double[0];
yPoly = new double[0];
polyfit = null;
}
}