org.apache.commons.math.analysis.interpolation
Class SmoothingBicubicSplineInterpolator
java.lang.Object
org.apache.commons.math.analysis.interpolation.SmoothingBicubicSplineInterpolator
- All Implemented Interfaces:
- BivariateRealGridInterpolator
public class SmoothingBicubicSplineInterpolator
- extends Object
- implements BivariateRealGridInterpolator
Generates a bicubic interpolation function.
Before interpolating, smoothing of the input data is performed using
splines.
See Handbook on splines for the user, ISBN 084939404X,
chapter 2.
- Since:
- 2.1
- Version:
- $Revision$ $Date$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SmoothingBicubicSplineInterpolator
public SmoothingBicubicSplineInterpolator()
interpolate
public BivariateRealFunction interpolate(double[] xval,
double[] yval,
double[][] zval)
throws MathException,
IllegalArgumentException
- Computes an interpolating function for the data set.
- Specified by:
interpolate
in interface BivariateRealGridInterpolator
- Parameters:
xval
- all the x-coordinates of the interpolation points, sorted
in increasing order.yval
- all the y-coordinates of the interpolation points, sorted
in increasing order.zval
- the values of the interpolation points on all the grid knots:
zval[i][j] = f(xval[i], yval[j])
- Returns:
- a function which interpolates the data set
- Throws:
MathException
- if arguments violate assumptions made by the
interpolation algorithm
IllegalArgumentException
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.