SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.interpolation
Interface UnivariateRealInterpolator

All Known Implementing Classes:
NevilleTable

public interface UnivariateRealInterpolator

Interpolation is a method of constructing new data points within the range of a discrete set of known data points. All univariate real interpolators implement this interface.

See Also:
Wikipedia: Interpolation

Method Summary
 void addData(double[] x, double[] y)
          Supply the interpolator with a set of data points.
 double evaluate(double x)
          Interpolate the estimated function to a point x to compute y^ = f(x).
 

Method Detail

addData

void addData(double[] x,
             double[] y)
Supply the interpolator with a set of data points. This function must be called before the interpolator can evaluate for any x.

Parameters:
x - the abscissae
y - the ordinates

evaluate

double evaluate(double x)
Interpolate the estimated function to a point x to compute y^ = f(x).

Parameters:
x - x
Returns:
f(x)

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.