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