Package ubic.basecode.math.distribution
Interface ProbabilityComputer
-
- All Known Implementing Classes:
NormalProbabilityComputer,UniformProbabilityComputer
public interface ProbabilityComputerAn interface that describes objects that can produce probabilities according to some distribution.- Author:
- pavlidis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doubleprobability(double value)Return the probability associated with a certain value.The upper tail of the associated distribution is returned.doubleprobability(double value, boolean upperTail)Return the probability associated with a certain value, with choice of tail.
-
-
-
Method Detail
-
probability
double probability(double value)
Return the probability associated with a certain value.The upper tail of the associated distribution is returned.- Parameters:
value-- Returns:
-
probability
double probability(double value, boolean upperTail)Return the probability associated with a certain value, with choice of tail.- Parameters:
value-upperTail-- Returns:
-
-