Package de.uka.ipd.sdq.probfunction.math
Interface ISample
-
- All Known Implementing Classes:
SampleImpl
public interface ISample
Describes a sample of a probability mass function. It contains a value and the probability that is associated to that value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getProbability()
Returns the probability of the value stored in the sample.Object
getValue()
Returns the value for which the probability is specified.void
setProbability(double probability)
-
-
-
Method Detail
-
getProbability
double getProbability()
Returns the probability of the value stored in the sample.- Returns:
- Probability of the value.
-
getValue
Object getValue()
Returns the value for which the probability is specified.- Returns:
- Value object.
-
setProbability
void setProbability(double probability)
-
-