Class SampleImpl
java.lang.Object
de.uka.ipd.sdq.probfunction.math.impl.SampleImpl
- All Implemented Interfaces:
ISample
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
double
Returns the probability of the value stored in the sample.getValue()
Returns the value for which the probability is specified.void
setProbability
(double probability) void
toString()
-
Constructor Details
-
SampleImpl
- Parameters:
value
-probability
-
-
-
Method Details
-
getProbability
public double getProbability()Description copied from interface:ISample
Returns the probability of the value stored in the sample.- Specified by:
getProbability
in interfaceISample
- Returns:
- Probability of the value.
-
setProbability
public void setProbability(double probability) - Specified by:
setProbability
in interfaceISample
-
getValue
Description copied from interface:ISample
Returns the value for which the probability is specified. -
setValue
-
equals
-
toString
-