Class ProbabilityFunctionImpl
java.lang.Object
de.uka.ipd.sdq.probfunction.math.impl.ProbabilityFunctionImpl
- All Implemented Interfaces:
IProbabilityFunction
- Direct Known Subclasses:
ProbabilityDensityFunctionImpl
,ProbabilityMassFunctionImpl
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProbabilityFunctionImpl
(IUnit unit, boolean hasOrderedDomain, boolean isInFrequencyDomain) -
Method Summary
Modifier and TypeMethodDescriptiongetUnit()
Returns the unit of the probability functions domain.boolean
If the domain of the probability functions is ordered, true is returned; false otherwise.boolean
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).boolean
True, if the probability density function is the time domain (a time domain graph shows how a signal changes over time).protected void
setInFrequencyDomain
(boolean isInFrequencyDomain) void
setRandomGenerator
(IRandomGenerator randomGenerator) protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uka.ipd.sdq.probfunction.math.IProbabilityFunction
checkConstrains, getArithmeticMeanValue, getMedian, getPercentile, getProbabilitySum
-
Field Details
-
randomGenerator
-
pfFactory
-
-
Constructor Details
-
ProbabilityFunctionImpl
-
-
Method Details
-
getUnit
Description copied from interface:IProbabilityFunction
Returns the unit of the probability functions domain.- Specified by:
getUnit
in interfaceIProbabilityFunction
- 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 interfaceIProbabilityFunction
- 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 interfaceIProbabilityFunction
- 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 interfaceIProbabilityFunction
- Returns:
- True, if in time domain; false otherwise.
-
setInFrequencyDomain
protected void setInFrequencyDomain(boolean isInFrequencyDomain) -
setUnit
-
getRandomGenerator
- Returns:
- the randomGenerator
-
setRandomGenerator
- Parameters:
randomGenerator
- the randomGenerator to set
-