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 intLength of x's and y's to take into account. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublerawinterp(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:
rawinterpin 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.
-