Class LinearInterpolator
java.lang.Object
com.irurueta.numerical.interpolation.BaseInterpolator
com.irurueta.numerical.interpolation.LinearInterpolator
Computes linear interpolation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Length of x's and y's to take into account. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
rawinterp
(int j, double x) Actual interpolation method to be implemented by subclasses.Methods inherited from class com.irurueta.numerical.interpolation.BaseInterpolator
hunt, interpolate, locate
-
Field Details
-
M
private static final int MLength 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 classBaseInterpolator
- 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.
-