Package ubic.basecode.math.distribution
Interface ProbabilityComputer
-
- All Known Implementing Classes:
NormalProbabilityComputer
,UniformProbabilityComputer
public interface ProbabilityComputer
An 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 double
probability(double value)
Return the probability associated with a certain value.The upper tail of the associated distribution is returned.double
probability(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:
-
-