Class BicubicSpline2DInterpolator

java.lang.Object
com.irurueta.numerical.interpolation.BicubicSpline2DInterpolator

public class BicubicSpline2DInterpolator extends Object
Computes bicubic spline interpolation in two dimensions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Length of x1v array.
    private final int
    Length of x2v array.
    private final CubicSplineInterpolator[]
    Array of one dimensional cubic spline interpolators.
    private final double[]
    Array of x1v.
    private final double[]
    Array of x2v.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BicubicSpline2DInterpolator(double[] x1v, double[] x2v, com.irurueta.algebra.Matrix ym)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets length of x1v array.
    int
    Gets length of x2v array.
    double
    interpolate(double x1p, double x2p)
    Given values x1p an x2p, returns an interpolated value.

    Methods inherited from class java.lang.Object

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

    • m

      private final int m
      Length of x1v array.
    • n

      private final int n
      Length of x2v array.
    • x1

      private final double[] x1
      Array of x1v.
    • yv

      private final double[] yv
      Array of x2v.
    • srp

      private final CubicSplineInterpolator[] srp
      Array of one dimensional cubic spline interpolators.
  • Constructor Details

    • BicubicSpline2DInterpolator

      public BicubicSpline2DInterpolator(double[] x1v, double[] x2v, com.irurueta.algebra.Matrix ym)
      Constructor.
      Parameters:
      x1v - array of x1v.
      x2v - array of x2v.
      ym - matrix of tabulated function values yij.
  • Method Details

    • getM

      public int getM()
      Gets length of x1v array.
      Returns:
      length of x1v array.
    • getN

      public int getN()
      Gets length of x2v array.
      Returns:
      length of x2v array.
    • interpolate

      public double interpolate(double x1p, double x2p) throws InterpolationException
      Given values x1p an x2p, returns an interpolated value.
      Parameters:
      x1p - x1p value where interpolation is estimated.
      x2p - x2p value where interpolation is estimated.
      Returns:
      interpolated value.
      Throws:
      InterpolationException - if interpolation fails.