public class DiscreteDistPoisson extends DiscreteDist<java.lang.Long>
Constructor and Description |
---|
DiscreteDistPoisson(Model owner,
java.lang.String name,
double meanValue,
boolean showInReport,
boolean showInTrace)
Creates a poisson distributed stream of pseudo random integer numbers.
|
Modifier and Type | Method and Description |
---|---|
Reporter |
createDefaultReporter()
Creates the default reporter for the PoissonDiscreteDist distribution.
|
java.lang.Long |
getInverseOfCumulativeProbabilityFunction(double p)
Abstract method to map a double
p from 0...1 to the
distribution's domain by determining the value x that satisfies
P(X < x) = p . |
double |
getMean()
Returns the mean value of the poisson distribution.
|
java.lang.Long |
sample()
Returns the next poisson distributed sample from this distribution.
|
sampleObject, sampleTimeSpan, sampleTimeSpan
changeRandomGenerator, getInitialSeed, getNonNegative, getNumSamples, isAntithetic, reset, reset, setAntithetic, setNonNegative, setSeed
getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReporter
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public DiscreteDistPoisson(Model owner, java.lang.String name, double meanValue, boolean showInReport, boolean showInTrace)
sample()
method.owner
- Model : The distribution's ownername
- java.lang.String : The distribution's namemeanValue
- double : The mean double
value for this
distributionshowInReport
- boolean : Flag for producing reportsshowInTrace
- boolean : Flag for producing trace outputpublic Reporter createDefaultReporter()
createDefaultReporter
in class Distribution
DiscreteDistPoissonReporter
public double getMean()
public java.lang.Long sample()
sample
in class NumericalDist<java.lang.Long>
public java.lang.Long getInverseOfCumulativeProbabilityFunction(double p)
p
from 0...1 to the
distribution's domain by determining the value x that satisfies
P(X < x) = p
.getInverseOfCumulativeProbabilityFunction
in class NumericalDist<java.lang.Long>
p
- double: A value between 0 and 1P(X < x) = p