org.apache.commons.math.analysis
Class SplineInterpolator

java.lang.Object
  extended byorg.apache.commons.math.analysis.SplineInterpolator
All Implemented Interfaces:
Serializable, UnivariateRealInterpolator

public class SplineInterpolator
extends Object
implements UnivariateRealInterpolator, Serializable

Computes a natural spline interpolation for the data set.

Version:
$Revision: 1.11 $ $Date: 2003/12/27 15:22:34 $
See Also:
Serialized Form

Constructor Summary
SplineInterpolator()
           
 
Method Summary
 UnivariateRealFunction interpolate(double[] xval, double[] yval)
          Computes an 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

SplineInterpolator

public SplineInterpolator()
Method Detail

interpolate

public UnivariateRealFunction interpolate(double[] xval,
                                          double[] yval)
Computes an interpolating function for the data set.

Specified by:
interpolate in interface UnivariateRealInterpolator
Parameters:
xval - the arguments for the interpolation points
yval - the values for the interpolation points
Returns:
a function which interpolates the data set


Copyright © 2003-2004 Apache Software Foundation. All Rights Reserved.