gov.sandia.cognition.math
Class ProbabilityUtil

java.lang.Object
  extended by gov.sandia.cognition.math.ProbabilityUtil

public class ProbabilityUtil
extends Object

Utility methods for dealing with probabilities.

Since:
3.0
Author:
Justin Basilico, Kevin R. Dixon

Constructor Summary
ProbabilityUtil()
           
 
Method Summary
static void assertIsProbability(double probability)
          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
 

Constructor Detail

ProbabilityUtil

public ProbabilityUtil()
Method Detail

assertIsProbability

public static void assertIsProbability(double probability)
Checks to make sure that probability is between 0.0 and 1.0.

Parameters:
probability - The probability, must be [0,1].