Class Linear

java.lang.Object
gda.analysis.numerical.interpolation.Linear

public class Linear extends Object
Linear interpolation Class. Given 2 points (x0,y0) and y0,y1 The value of y at a point x between the points is y= y0+(x-x0)(y1-y0)/(x1-x0)
  • Constructor Details

    • Linear

      public Linear()
  • Method Details

    • linearInterpolation

      public static double linearInterpolation(DataVector x, DataVector y, double xpoint)
      Given datavectors x and y and given a value of x, this routine returns a linear interpolated value of y
      Parameters:
      x -
      y -
      xpoint -
      Returns:
      linearly interpolated y value