MATH-1175
"LaplaceDistribution": Fixed special case of inverse cumulative distribution.
This commit is contained in:
parent
428a48533c
commit
17f52a2e55
|
@ -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
|
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).
|
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" >
|
<action dev="luc" type="fix" issue="MATH-1174" >
|
||||||
Fixed a problem with too thin polygons considered to have infinite size.
|
Fixed a problem with too thin polygons considered to have infinite size.
|
||||||
</action>
|
</action>
|
||||||
|
|
|
@ -107,7 +107,7 @@ public class LaplaceDistribution extends AbstractRealDistribution {
|
||||||
if (p < 0.0 || p > 1.0) {
|
if (p < 0.0 || p > 1.0) {
|
||||||
throw new OutOfRangeException(p, 0.0, 1.0);
|
throw new OutOfRangeException(p, 0.0, 1.0);
|
||||||
} else if (p == 0) {
|
} else if (p == 0) {
|
||||||
return 0.0;
|
return Double.NEGATIVE_INFINITY;
|
||||||
} else if (p == 1) {
|
} else if (p == 1) {
|
||||||
return Double.POSITIVE_INFINITY;
|
return Double.POSITIVE_INFINITY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue