MATH-1419

This commit is contained in:
Gilles 2017-06-15 14:21:21 +02:00
parent 6f27b4ae8f
commit 1b53f09c3a
2 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -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);