public class ContDistErlang extends ContDistExponential
Constructor and Description |
---|
ContDistErlang(Model owner,
java.lang.String name,
long order,
double mean,
boolean showInReport,
boolean showInTrace)
Creates a stream of pseudo random numbers following a normal (a.k.a.
|
Modifier and Type | Method and Description |
---|---|
Reporter |
createDefaultReporter()
Creates the default reporter for the RealDistErlang distribution.
|
java.lang.Double |
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 this Erlang distribution.
|
long |
getOrder()
Returns the order of the Erlang distribution.
|
java.lang.Double |
sample()
Returns the next Erlang distributed sample from this distribution.
|
sampleTimeSpan, sampleTimeSpan
sampleObject
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 ContDistErlang(Model owner, java.lang.String name, long order, double mean, boolean showInReport, boolean showInTrace)
owner
- Model : The distribution's ownername
- java.lang.String : The distribution's nameorder
- long : The order of the Erlang distribution (>=1)mean
- double : The mean value for this distributionshowInReport
- boolean : Flag for producing reportsshowInTrace
- boolean : Flag for producing trace outputpublic Reporter createDefaultReporter()
createDefaultReporter
in class ContDistExponential
ContDistErlangReporter
public double getMean()
getMean
in class ContDistExponential
public long getOrder()
public java.lang.Double sample()
sample
in class ContDistExponential
public java.lang.Double 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 ContDistExponential
p
- double: A value between 0 and 1P(X < x) = p