case 4: if (coefficients.length == 9) { sum = new BiQuadric(coefficients); } else { sum = null;
@Override public double computeZ(final double x, final double y) { final double[] c = getCoefficients(); return c[0] + (c[1] + (c[3] + (c[6] + c[8] * y) * y) * x + (c[4] + c[7] * y) * y) * x + (c[2] + c[5] * y) * y; } }
new FXYSum.BiLinear(), new FXYSum.Quadric(), new FXYSum.BiQuadric(), new FXYSum.Cubic(), new FXYSum.BiCubic(),
public void testBiQuadricOptimization() { FXYSum fxyRaw = new FXYSum(FXYSum.FXY_BI_QUADRATIC); FXYSum fxyOpt = new FXYSum.BiQuadric(); testRawAgainstOptimized(fxyRaw, fxyOpt); }