Top Description Methods
org.apache.commons.math3.analysis.interpolation

public Interface UnivariateInterpolator

Known Direct Implementers
org.apache.commons.math3.analysis.interpolation.UnivariatePeriodicInterpolator, org.apache.commons.math3.analysis.interpolation.AkimaSplineInterpolator, org.apache.commons.math3.analysis.interpolation.DividedDifferenceInterpolator, org.apache.commons.math3.analysis.interpolation.LinearInterpolator, org.apache.commons.math3.analysis.interpolation.LoessInterpolator, org.apache.commons.math3.analysis.interpolation.NevilleInterpolator, org.apache.commons.math3.analysis.interpolation.SplineInterpolator
Imports
org.apache.commons.math3.analysis.UnivariateFunction, org.apache.commons.math3.exception.DimensionMismatchException, .MathIllegalArgumentException

Interface representing a univariate real interpolating function.

Method Summary

Modifier and TypeMethod and Description
public UnivariateFunction

Returns:

a function which interpolates the dataset.
interpolate
(double[]
Arguments for the interpolation points.
xval
,
double[]
Values for the interpolation points.
yval
)

Compute an interpolating function for the dataset.

Method Detail

interpolateback to summary
public UnivariateFunction interpolate(double[] xval, double[] yval) throws MathIllegalArgumentException, DimensionMismatchException

Compute an interpolating function for the dataset.

Parameters
xval:double[]

Arguments for the interpolation points.

yval:double[]

Values for the interpolation points.

Returns:UnivariateFunction

a function which interpolates the dataset.

Exceptions
MathIllegalArgumentException:
if the arguments violate assumptions made by the interpolation algorithm.
DimensionMismatchException:
if arrays lengthes do not match