Class Linear
java.lang.Object
gda.analysis.numerical.interpolation.Linear
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublelinearInterpolation(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
-
Constructor Details
-
Linear
public Linear()
-
-
Method Details
-
linearInterpolation
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
-