Class ArgumentUtils
- java.lang.Object
-
- org.apache.commons.statistics.distribution.ArgumentUtils
-
final class ArgumentUtils extends java.lang.ObjectUtilities for argument validation.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateArgumentUtils()No instances.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidcheckProbability(double p)Check the probabilitypis in the interval[0, 1].(package private) static booleanisFiniteStrictlyPositive(double x)Checks if the valuexis finite and strictly positive.
-
-
-
Method Detail
-
isFiniteStrictlyPositive
static boolean isFiniteStrictlyPositive(double x)
Checks if the valuexis finite and strictly positive.- Parameters:
x- Value- Returns:
- true if
x > 0and is finite
-
checkProbability
static void checkProbability(double p)
Check the probabilitypis in the interval[0, 1].- Parameters:
p- Probability- Throws:
java.lang.IllegalArgumentException- ifp < 0orp > 1
-
-