Package de.uka.ipd.sdq.probfunction.math
Interface ISample
-
- All Known Implementing Classes:
SampleImpl
public interface ISampleDescribes 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 doublegetProbability()Returns the probability of the value stored in the sample.ObjectgetValue()Returns the value for which the probability is specified.voidsetProbability(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)
-
-