Documentation of 'smile.interpolation.BicubicInterpolation' Java class
BicubicInterpolation
smile.interpolation

Class BicubicInterpolation

  • All Implemented Interfaces:
    Interpolation2D


    public class BicubicInterpolation
    extends java.lang.Object
    implements Interpolation2D
    Bicubic interpolation in a two-dimensional regular grid. Bicubic spline interpolation guarantees the continuity of the first derivatives, as well as the continuity of a cross-derivative.

    Note that CubicSplineInterpolation2D guarantees the continuity of the first and second function derivatives but bicubic spline guarantees continuity of only gradient and cross-derivative. Second derivatives could be discontinuous.

    In image processing, bicubic interpolation is often chosen over bilinear interpolation or nearest neighbor in image resampling, when speed is not an issue. Images resampled with bicubic interpolation are smoother and have fewer interpolation artifacts.

    • Constructor Summary

      Constructors 
      Constructor and Description
      BicubicInterpolation(double[] x1, double[] x2, double[][] y)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double interpolate(double x1p, double x2p)
      Interpolate the data at a given 2-dimensional point.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BicubicInterpolation

        public BicubicInterpolation(double[] x1,
                                    double[] x2,
                                    double[][] y)
        Constructor. The value in x1 and x2 must be monotonically increasing.
    • Method Detail

      • interpolate

        public double interpolate(double x1p,
                                  double x2p)
        Description copied from interface: Interpolation2D
        Interpolate the data at a given 2-dimensional point.
        Specified by:
        interpolate in interface Interpolation2D

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.