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 Details

    • ContinuousSampleImpl

      protected ContinuousSampleImpl(Double value, Double probability)
      Parameters:
      value -
      probability -
  • Method Details

    • 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 interface IContinuousSample
      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 interface IContinuousSample
      Returns:
      Right border of the interval.
    • setValue

      public void setValue(Double value)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object