Class ContinuousSampleImpl
- java.lang.Object
-
- de.uka.ipd.sdq.probfunction.math.impl.ContinuousSampleImpl
-
- All Implemented Interfaces:
IContinuousSample
public class ContinuousSampleImpl extends Object implements IContinuousSample
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContinuousSampleImpl(Double value, Double probability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Double
getProbability()
Probability that a sample lies in the interval specified by the ContinuousSample.double
getValue()
Value represents the right border of the specified interval.void
setProbability(Double probability)
void
setValue(Double value)
-
-
-
Method Detail
-
getProbability
public Double getProbability()
Description copied from interface:IContinuousSample
Probability that a sample lies in the interval specified by the ContinuousSample.- Specified by:
getProbability
in interfaceIContinuousSample
- Returns:
- Probability for the interval.
-
setProbability
public void setProbability(Double probability)
-
getValue
public double getValue()
Description copied from interface:IContinuousSample
Value represents the right border of the specified interval. (The left is given by the ContinuousSample with the next smaller value).- Specified by:
getValue
in interfaceIContinuousSample
- Returns:
- Right border of the interval.
-
setValue
public void setValue(Double value)
-
-