case 6: if (coefficients.length == 16) { sum = new BiCubic(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[10] + (c[13] + c[15] * y) * y) * y) * x + (c[7] + (c[11] + c[14] * y) * y) * y) * x + (c[4] + (c[8] + c[12] * y) * y) * y) * x + (c[2] + (c[5] + c[9] * y) * y) * y; }
new FXYSum.BiQuadric(), new FXYSum.Cubic(), new FXYSum.BiCubic(), new FXYSum(FXYSum.FXY_4TH, 4), new FXYSum(FXYSum.FXY_BI_4TH, 4 + 4)
public void testBiCubicOptimization() { FXYSum fxyRaw = new FXYSum(FXYSum.FXY_BI_CUBIC); FXYSum fxyOpt = new FXYSum.BiCubic(); testRawAgainstOptimized(fxyRaw, fxyOpt); }