Class Poisson
java.lang.Object
common.distributions.Distribution
common.distributions.discrete.Poisson
- All Implemented Interfaces:
ServiceStrategy, Cloneable
Poisson distribution, typically used to model arrival processes in the JMT simulation engine.
-
Nested Class Summary
Nested classes/interfaces inherited from class Distribution
Distribution.Parameter, Distribution.ValueChecker -
Field Summary
Fields inherited from class Distribution
all, allWithMean, c, checker, classpath, description, df, discreteDistributions, hasC, hasMean, image, isNestable, mean, name, nestableDistributions, parameterClasspath, parameters, precondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageIconsetImage()Sets explicative image of this distribution used, together with description, to help the user to understand meaning of parametersvoidsetMean(double value) Sets the mean for this distributionprotected Distribution.Parameter[]Used to set parameters of this distributiontoString()Returns this distribution's short descriptionvoidupdateCM()This method has to be called whenever a parameter changes andhasMeanorhasCis trueMethods inherited from class Distribution
checkInfinitesimalGeneratorMatrix, checkProbabilityVector, checkTransitionRateMatrix, checkValue, clone, equals, findAll, findAllDiscrete, findAllWithMean, findNestableDistributions, formatNumber, getC, getClassPath, getDescription, getImage, getMean, getName, getNumberOfParameters, getParameter, getParameter, getParameterClassPath, getPrecondition, hasC, hasMean, isNestable, normalizeProbabilityVector, setC, setValueChecker
-
Constructor Details
-
Poisson
public Poisson()Constructs a new Poisson Distribution
-
-
Method Details
-
setParameters
Description copied from class:DistributionUsed to set parameters of this distribution- Specified by:
setParametersin classDistribution- Returns:
- distribution parameters
-
setImage
Description copied from class:DistributionSets explicative image of this distribution used, together with description, to help the user to understand meaning of parameters- Specified by:
setImagein classDistribution- Returns:
- explicative image
-
toString
Description copied from class:DistributionReturns this distribution's short description- Specified by:
toStringin classDistribution- Returns:
- distribution's short description
-
setMean
public void setMean(double value) Description copied from class:DistributionSets the mean for this distribution- Overrides:
setMeanin classDistribution- Parameters:
value- mean value
-
updateCM
public void updateCM()Description copied from class:DistributionThis method has to be called whenever a parameter changes andhasMeanorhasCis true- Overrides:
updateCMin classDistribution
-