Package gaiasky.util.math
Class LinearInterpolator
java.lang.Object
gaiasky.util.math.LinearInterpolator
Implements a linear function for interpolation of real univariate functions.
-
Constructor Summary
ConstructorDescriptionLinearInterpolator
(double[] x, double[] y) Creates a linear interpolator with the given interpolation points. -
Method Summary
-
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 pointsy
- the values for the interpolation points
-
-
Method Details
-
value
public double value(double v)
-