MATH-1175

"LaplaceDistribution": Fixed special case of inverse cumulative distribution.
This commit is contained in:
Gilles 2014-12-03 12:06:03 +01:00
parent 428a48533c
commit 17f52a2e55
2 changed files with 8 additions and 1 deletions

View File

@ -73,6 +73,13 @@ Users are encouraged to upgrade to this version as this release not
2. A few methods in the FastMath class are in fact slower that their
counterpart in either Math or StrictMath (cf. MATH-740 and MATH-901).
">
<action dev="erans" type="fix" issue="MATH-1175" due-to="Karsten Loesing">
Fixed inverse cumulative probability of 0 in "LaplaceDistribution".
</action>
<action dev="erans" type="add" issue="MATH-1166">
New classes "BicubicInterpolatingFunction" and "BicubicInterpolator" to
replace "BicubicSplineInterpolatingFunction" and "BicubicSplineInterpolator".
</action>
<action dev="luc" type="fix" issue="MATH-1174" >
Fixed a problem with too thin polygons considered to have infinite size.
</action>

View File

@ -107,7 +107,7 @@ public class LaplaceDistribution extends AbstractRealDistribution {
if (p < 0.0 || p > 1.0) {
throw new OutOfRangeException(p, 0.0, 1.0);
} else if (p == 0) {
return 0.0;
return Double.NEGATIVE_INFINITY;
} else if (p == 1) {
return Double.POSITIVE_INFINITY;
}