Class LinearInterpolator

java.lang.Object
com.irurueta.numerical.interpolation.BaseInterpolator
com.irurueta.numerical.interpolation.LinearInterpolator

public class LinearInterpolator extends BaseInterpolator
Computes linear interpolation.
  • Field Details

    • M

      private static final int M
      Length of x's and y's to take into account.
      See Also:
  • Constructor Details

    • LinearInterpolator

      public LinearInterpolator(double[] x, double[] y)
  • Method Details

    • rawinterp

      public double rawinterp(int j, double x)
      Actual interpolation method to be implemented by subclasses.
      Specified by:
      rawinterp in class BaseInterpolator
      Parameters:
      j - index where value x to be interpolated in located in the array of xx.
      x - value to obtain interpolation for.
      Returns:
      interpolated value.