Class PolynomialInterpolator
- java.lang.Object
-
- org.hortonmachine.gears.utils.math.interpolation.PolynomialInterpolator
-
- All Implemented Interfaces:
Interpolator
public class PolynomialInterpolator extends Object implements Interpolator
A polynomial interpolation function.This was done basing on the Java Number Cruncher Book by Ronald Mak (see http://www.apropos-logic.com/books.html).
- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Constructor Summary
Constructors Constructor Description PolynomialInterpolator(List<Double> xList, List<Double> yList)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetInterpolated(double x)Returns the interpolated value y=f(x).
-
-
-
Method Detail
-
getInterpolated
public double getInterpolated(double x)
Description copied from interface:InterpolatorReturns the interpolated value y=f(x).- Specified by:
getInterpolatedin interfaceInterpolator- Parameters:
x- the value of x.- Returns:
- the interpolated value of y.
-
-