Class DistributionJMCH
java.lang.Object
jmt.jmch.distributions.DistributionJMCH
Manager of the service time and inter arrival time distributions for JMCH.
It is encharge of converting the distribution result from the editor to a engine.random distribution.
- Author:
- Lorenzo Torri Date: 14-jan-2025 Time: 22.13
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Distributionprotected DistributionContainerprotected double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConvert the distribution from the gui.common version to the engine.random versiondoublemapValue(double value) Map a value x on the interval [percentile 0.10, percentile 0.90]doublenextRand()Get the next random value for this distributionvoidsetEngine(RandomEngine randomEngine) Add new randomEngine
-
Field Details
-
distributionCont
-
distribution
-
percentiles
protected double[] percentiles
-
-
Constructor Details
-
DistributionJMCH
public DistributionJMCH()
-
-
Method Details
-
convertDistribution
Convert the distribution from the gui.common version to the engine.random version- Parameters:
d- the distribution selected in the editor
-
nextRand
Get the next random value for this distribution- Returns:
- random value
- Throws:
IncorrectDistributionParameterException
-
mapValue
public double mapValue(double value) Map a value x on the interval [percentile 0.10, percentile 0.90]- Parameters:
value-- Returns:
- a value between 0 and 1
-
setEngine
Add new randomEngine -
getDistribution
-