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
Modifier and TypeMethodDescriptiondouble
Returns the probability of the value stored in the sample.getValue()
Returns the value for which the probability is specified.void
setProbability
(double probability)
-
Method Details
-
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)
-