Repository: commons-math Updated Branches: refs/heads/master 6f27b4ae8 -> 1b53f09c3
MATH-1419 Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/1b53f09c Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/1b53f09c Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/1b53f09c Branch: refs/heads/master Commit: 1b53f09c3a9dcd64dd281c1955b062fc28999366 Parents: 6f27b4a Author: Gilles <er...@apache.org> Authored: Thu Jun 15 14:21:21 2017 +0200 Committer: Gilles <er...@apache.org> Committed: Thu Jun 15 14:21:21 2017 +0200 ---------------------------------------------------------------------- src/changes/changes.xml | 3 +++ .../math4/analysis/polynomials/PolynomialSplineFunction.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/1b53f09c/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 90df1e1..9e4f579 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -54,6 +54,9 @@ If the output is not quite correct, check for invisible trailing spaces! </release> <release version="4.0" date="XXXX-XX-XX" description=""> + <action dev="erans" type="fix" issue="MATH-1419" due-to="Hang Park"> + "PolynomialSplineFunction": incorrect usage of exception. + </action> <action dev="kinow" type="fix" issue="MATH-1413"> add generics to the Frequency class </action> http://git-wip-us.apache.org/repos/asf/commons-math/blob/1b53f09c/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java index b842a40..d7263c2 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialSplineFunction.java @@ -105,7 +105,7 @@ public class PolynomialSplineFunction implements UnivariateDifferentiableFunctio } if (knots.length < 2) { throw new NumberIsTooSmallException(LocalizedFormats.NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION, - 2, knots.length, false); + knots.length, 2, true); } if (knots.length - 1 != polynomials.length) { throw new DimensionMismatchException(polynomials.length, knots.length);