MATH-1419
This commit is contained in:
parent
6f27b4ae8f
commit
1b53f09c3a
|
@ -54,6 +54,9 @@ If the output is not quite correct, check for invisible trailing spaces!
|
||||||
</release>
|
</release>
|
||||||
|
|
||||||
<release version="4.0" date="XXXX-XX-XX" description="">
|
<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">
|
<action dev="kinow" type="fix" issue="MATH-1413">
|
||||||
add generics to the Frequency class
|
add generics to the Frequency class
|
||||||
</action>
|
</action>
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class PolynomialSplineFunction implements UnivariateDifferentiableFunctio
|
||||||
}
|
}
|
||||||
if (knots.length < 2) {
|
if (knots.length < 2) {
|
||||||
throw new NumberIsTooSmallException(LocalizedFormats.NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION,
|
throw new NumberIsTooSmallException(LocalizedFormats.NOT_ENOUGH_POINTS_IN_SPLINE_PARTITION,
|
||||||
2, knots.length, false);
|
knots.length, 2, true);
|
||||||
}
|
}
|
||||||
if (knots.length - 1 != polynomials.length) {
|
if (knots.length - 1 != polynomials.length) {
|
||||||
throw new DimensionMismatchException(polynomials.length, knots.length);
|
throw new DimensionMismatchException(polynomials.length, knots.length);
|
||||||
|
|
Loading…
Reference in New Issue