From 7200c43dea3dbfbd9d38b937c44b6e71744b05c5 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Mon, 20 Oct 2014 21:40:02 -0400 Subject: [PATCH] MATH-1138 #comment added deprecation and accuracy warnings --- .../interpolation/BicubicSplineInterpolatingFunction.java | 6 +++++- .../analysis/interpolation/BicubicSplineInterpolator.java | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunction.java b/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunction.java index 079e9fc7e..522c2a50b 100644 --- a/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunction.java +++ b/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolatingFunction.java @@ -27,10 +27,14 @@ import org.apache.commons.math3.util.MathArrays; /** * Function that implements the * - * bicubic spline interpolation. + * bicubic spline interpolation. Due to numerical accuracy issues this should not + * be used. * * @since 2.1 + * @deprecated as of 3.4 replaced by + * {@link org.apache.commons.math3.analysis.interpolation.PiecewiseBicubicSplineInterpolatingFunction} */ +@Deprecated public class BicubicSplineInterpolatingFunction implements BivariateFunction { /** Number of coefficients. */ diff --git a/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolator.java b/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolator.java index 5e2c92fde..bf48d0f5f 100644 --- a/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolator.java +++ b/src/main/java/org/apache/commons/math3/analysis/interpolation/BicubicSplineInterpolator.java @@ -28,7 +28,9 @@ import org.apache.commons.math3.util.MathArrays; * Generates a bicubic interpolating function. * * @since 2.2 + * @deprecated as of 3.4 replaced by {@link org.apache.commons.math3.analysis.interpolation.PiecewiseBicubicSplineInterpolator} */ +@Deprecated public class BicubicSplineInterpolator implements BivariateGridInterpolator { /** Whether to initialize internal data used to compute the analytical