public class LinearInterpolator extends Object implements UnivariateInterpolator
Constructor and Description |
---|
LinearInterpolator() |
Modifier and Type | Method and Description |
---|---|
PolynomialSplineFunction |
interpolate(double[] x,
double[] y)
Computes a linear interpolating function for the data set.
|
public LinearInterpolator()
public PolynomialSplineFunction interpolate(double[] x, double[] y) throws DimensionMismatchException, NumberIsTooSmallException, NonMonotonicSequenceException
interpolate
in interface UnivariateInterpolator
x
- the arguments for the interpolation pointsy
- the values for the interpolation pointsDimensionMismatchException
- if x
and y
have different sizes.NonMonotonicSequenceException
- if x
is not sorted in
strict increasing order.NumberIsTooSmallException
- if the size of x
is smaller
than 2.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.