Class LaplaceInterpolation

java.lang.Object
smile.interpolation.LaplaceInterpolation

public class LaplaceInterpolation extends Object
Laplace's interpolation to restore missing or unmeasured values on a 2-dimensional evenly spaced regular grid. In some sense, Laplace interpolation produces the smoothest possible interpolant, which are obtained by solving a very sparse linear equations with biconjugate gradient method.
  • Constructor Details

    • LaplaceInterpolation

      public LaplaceInterpolation()
  • Method Details

    • interpolate

      public static double interpolate(double[][] matrix)
      Laplace interpolation.
      Parameters:
      matrix - on input, values of NaN are deemed to be missing data. On output, they are refilled with the interpolated solution.
      Returns:
      the estimated error.
    • interpolate

      public static double interpolate(double[][] matrix, double tol)
      Laplace interpolation.
      Parameters:
      matrix - on input, values of NaN are deemed to be missing data. On output, they are refilled with the interpolated solution.
      tol - the desired convergence tolerance.
      Returns:
      the estimated error.
    • interpolate

      public static double interpolate(double[][] matrix, double tol, int maxIter)
      Laplace interpolation.
      Parameters:
      matrix - on input, values of NaN are deemed to be missing data. On output, they are refilled with the interpolated solution.
      tol - the desired convergence tolerance.
      maxIter - the maximum number of allowed iterations.
      Returns:
      the estimated error.
    • toString

      public String toString()
      Overrides:
      toString in class Object