|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.interpolation.LinearInterpolator
public class LinearInterpolator
Implements a linear function for interpolation of real univariate functions.
Constructor Summary | |
---|---|
LinearInterpolator()
|
Method Summary | |
---|---|
PolynomialSplineFunction |
interpolate(double[] x,
double[] y)
Computes a linear interpolating function for the data set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearInterpolator()
Method Detail |
---|
public PolynomialSplineFunction interpolate(double[] x, double[] y)
interpolate
in interface UnivariateRealInterpolator
x
- the arguments for the interpolation pointsy
- the values for the interpolation points
DimensionMismatchException
- if x
and y
have different sizes.
NonMonotonousSequenceException
- if x
is not sorted in strict increasing order.
NumberIsTooSmallException
- if the size of x
is smaller
than 2.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |