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 Summary
Fields Modifier and Type Field Description protected static IProbabilityFunctionFactory
pfFactory
IRandomGenerator
randomGenerator
-
Constructor Summary
Constructors Constructor Description ProbabilityFunctionImpl(IUnit unit, boolean hasOrderedDomain, boolean isInFrequencyDomain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRandomGenerator
getRandomGenerator()
IUnit
getUnit()
Returns the unit of the probability functions domain.boolean
hasOrderedDomain()
If the domain of the probability functions is ordered, true is returned; false otherwise.boolean
isInFrequencyDomain()
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
isInTimeDomain()
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
setUnit(IUnit unit)
-
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 Detail
-
randomGenerator
public IRandomGenerator randomGenerator
-
pfFactory
protected static final IProbabilityFunctionFactory pfFactory
-
-
Constructor Detail
-
ProbabilityFunctionImpl
public ProbabilityFunctionImpl(IUnit unit, boolean hasOrderedDomain, boolean isInFrequencyDomain)
-
-
Method Detail
-
getUnit
public IUnit 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
protected void setUnit(IUnit unit)
-
getRandomGenerator
public IRandomGenerator getRandomGenerator()
- Returns:
- the randomGenerator
-
setRandomGenerator
public void setRandomGenerator(IRandomGenerator randomGenerator)
- Parameters:
randomGenerator
- the randomGenerator to set
-
-