public class ProbabilityUtil
- extends Object
Utility methods for dealing with probabilities.
- Justin Basilico, Kevin R. Dixon
Checks to make sure that probability is between 0.0 and 1.0.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static void assertIsProbability(double probability)
- Checks to make sure that probability is between 0.0 and 1.0.
probability - The probability, must be [0,1].