Class LinearInterpolator

java.lang.Object
gaiasky.util.math.LinearInterpolator

public class LinearInterpolator extends Object
Implements a linear function for interpolation of real univariate functions.
  • Constructor Details

    • LinearInterpolator

      public LinearInterpolator(double[] x, double[] y)
      Creates a linear interpolator with the given interpolation points.
      Parameters:
      x - the arguments for the interpolation points
      y - the values for the interpolation points
  • Method Details

    • value

      public double value(double v)