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
Modifier and TypeMethodDescriptiondouble
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 Details
-
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:
-