smile.interpolation
Class LaplaceInterpolation
- java.lang.Object
-
- smile.interpolation.LaplaceInterpolation
-
public class LaplaceInterpolation extends java.lang.ObjectLaplace 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 Summary
Constructors Constructor and Description LaplaceInterpolation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleinterpolate(double[][] matrix)Laplace interpolation.static doubleinterpolate(double[][] matrix, double tol)Laplace interpolation.static doubleinterpolate(double[][] matrix, double tol, int maxIter)Laplace interpolation.
-
-
-
Method Detail
-
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG