Class SmoothingPolynomialBicubicSplineInterpolator
- java.lang.Object
-
- org.apache.commons.math3.analysis.interpolation.BicubicSplineInterpolator
-
- org.apache.commons.math3.analysis.interpolation.SmoothingPolynomialBicubicSplineInterpolator
-
- All Implemented Interfaces:
BivariateGridInterpolator
@Deprecated public class SmoothingPolynomialBicubicSplineInterpolator extends BicubicSplineInterpolator
Deprecated.To be removed in 4.0 (see MATH-1166).Generates a bicubic interpolation function. Prior to generating the interpolating function, the input is smoothed using polynomial fitting.- Since:
- 2.2
-
-
Field Summary
Fields Modifier and Type Field Description private intxDegreeDeprecated.Degree of the fitting polynomial.private PolynomialFitterxFitterDeprecated.Fitter for x.private intyDegreeDeprecated.Degree of the fitting polynomial.private PolynomialFitteryFitterDeprecated.Fitter for y.
-
Constructor Summary
Constructors Constructor Description SmoothingPolynomialBicubicSplineInterpolator()Deprecated.Default constructor.SmoothingPolynomialBicubicSplineInterpolator(int degree)Deprecated.SmoothingPolynomialBicubicSplineInterpolator(int xDegree, int yDegree)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BicubicSplineInterpolatingFunctioninterpolate(double[] xval, double[] yval, double[][] fval)Deprecated.Compute an interpolating function for the dataset.
-
-
-
Field Detail
-
xFitter
private final PolynomialFitter xFitter
Deprecated.Fitter for x.
-
xDegree
private final int xDegree
Deprecated.Degree of the fitting polynomial.
-
yFitter
private final PolynomialFitter yFitter
Deprecated.Fitter for y.
-
yDegree
private final int yDegree
Deprecated.Degree of the fitting polynomial.
-
-
Constructor Detail
-
SmoothingPolynomialBicubicSplineInterpolator
public SmoothingPolynomialBicubicSplineInterpolator()
Deprecated.Default constructor. The degree of the fitting polynomials is set to 3.
-
SmoothingPolynomialBicubicSplineInterpolator
public SmoothingPolynomialBicubicSplineInterpolator(int degree) throws NotPositiveExceptionDeprecated.- Parameters:
degree- Degree of the polynomial fitting functions.- Throws:
NotPositiveException- if degree is not positive
-
SmoothingPolynomialBicubicSplineInterpolator
public SmoothingPolynomialBicubicSplineInterpolator(int xDegree, int yDegree) throws NotPositiveExceptionDeprecated.- Parameters:
xDegree- Degree of the polynomial fitting functions along the x-dimension.yDegree- Degree of the polynomial fitting functions along the y-dimension.- Throws:
NotPositiveException- if degrees are not positive
-
-
Method Detail
-
interpolate
public BicubicSplineInterpolatingFunction interpolate(double[] xval, double[] yval, double[][] fval) throws NoDataException, NullArgumentException, DimensionMismatchException, NonMonotonicSequenceException
Deprecated.Compute an interpolating function for the dataset.- Specified by:
interpolatein interfaceBivariateGridInterpolator- Overrides:
interpolatein classBicubicSplineInterpolator- 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.fval- The values of the interpolation points on all the grid knots:fval[i][j] = f(xval[i], yval[j]).- Returns:
- a function which interpolates the dataset.
- Throws:
NoDataException- if any of the arrays has zero length.DimensionMismatchException- if the array lengths are inconsistent.NonMonotonicSequenceException- if the array is not sorted.NullArgumentException
-
-