Class ProbabilityFunctionImpl

java.lang.Object
de.uka.ipd.sdq.probfunction.math.impl.ProbabilityFunctionImpl
All Implemented Interfaces:
IProbabilityFunction
Direct Known Subclasses:
ProbabilityDensityFunctionImpl, ProbabilityMassFunctionImpl

public abstract class ProbabilityFunctionImpl extends Object implements IProbabilityFunction
  • Field Details

  • Constructor Details

    • ProbabilityFunctionImpl

      public ProbabilityFunctionImpl(IUnit unit, boolean hasOrderedDomain, boolean isInFrequencyDomain)
  • Method Details

    • getUnit

      public IUnit getUnit()
      Description copied from interface: IProbabilityFunction
      Returns the unit of the probability functions domain.
      Specified by:
      getUnit in interface IProbabilityFunction
      Returns:
      unit of the probability functions domain.
    • hasOrderedDomain

      public boolean hasOrderedDomain()
      Description copied from interface: IProbabilityFunction
      If the domain of the probability functions is ordered, true is returned; false otherwise.
      Specified by:
      hasOrderedDomain in interface IProbabilityFunction
      Returns:
      True, if the domain is ordered.
    • isInFrequencyDomain

      public boolean isInFrequencyDomain()
      Description copied from interface: IProbabilityFunction
      True, if the probability density function is in the frequency domain (frequency domain graph shows how much of the signal lies within each given frequency band over a range of frequencies). This means it is the result of a Fourier transformation.
      Specified by:
      isInFrequencyDomain in interface IProbabilityFunction
      Returns:
      True, if in frequency domain, false otherwise.
    • isInTimeDomain

      public boolean isInTimeDomain()
      Description copied from interface: IProbabilityFunction
      True, if the probability density function is the time domain (a time domain graph shows how a signal changes over time). This means that it is not a result of a Fourier transform.
      Specified by:
      isInTimeDomain in interface IProbabilityFunction
      Returns:
      True, if in time domain; false otherwise.
    • setInFrequencyDomain

      protected void setInFrequencyDomain(boolean isInFrequencyDomain)
    • setUnit

      protected void setUnit(IUnit unit)
    • getRandomGenerator

      public IRandomGenerator getRandomGenerator()
      Returns:
      the randomGenerator
    • setRandomGenerator

      public void setRandomGenerator(IRandomGenerator randomGenerator)
      Parameters:
      randomGenerator - the randomGenerator to set