Class BicubicFunction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double[][] a
      Coefficients
      private static short N
      Number of points.
    • Constructor Summary

      Constructors 
      Constructor Description
      BicubicFunction​(double[] coeff)
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private double apply​(double[] pX, double[] pY, double[][] coeff)
      Compute the value of the bicubic polynomial.
      double value​(double x, double y)
      Compute the value for the function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • a

        private final double[][] a
        Coefficients
    • Constructor Detail

      • BicubicFunction

        BicubicFunction​(double[] coeff)
        Simple constructor.
        Parameters:
        coeff - Spline coefficients.
    • Method Detail

      • value

        public double value​(double x,
                            double y)
        Compute the value for the function.
        Specified by:
        value in interface BivariateFunction
        Parameters:
        x - Abscissa for which the function value should be computed.
        y - Ordinate for which the function value should be computed.
        Returns:
        the value.
      • apply

        private double apply​(double[] pX,
                             double[] pY,
                             double[][] coeff)
        Compute the value of the bicubic polynomial.
        Parameters:
        pX - Powers of the x-coordinate.
        pY - Powers of the y-coordinate.
        coeff - Spline coefficients.
        Returns:
        the interpolated value.