Package jline.lang.processes
Class DMAP
- All Implemented Interfaces:
Serializable,Copyable
A Discrete Markovian Arrival Process (DMAP).
Unlike MAP (continuous-time), D0+D1 is a stochastic matrix (row sums = 1).
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionD(int i) Gets the i-th matrix of the Markovian arrival process representation.booleandoubleevalCDF(double t) CDF(t) = 1 - pi * D0^floor(t) * edoublegetMean()Mean inter-arrival time: pi * (I - D0)^{-1} * egetMu()Row sums of (I - D0).longGets the number of phases in this Markovian distribution.Gets the matrix representation of this Markovian process.doublegetRate()Gets the rate of this distribution (inverse of mean).doublegetSCV()Gets the squared coefficient of variation (SCV) of this distribution.Embedded chain P = (I - D0)^{-1} * D1.doublegetVar()Variance: 2*pi*(I-D0)^{-2}*e - mean - mean^2inthashCode()voidstatic DMAPrand()static DMAPrand(int order) double[]sample(int n) Generates random samples from this distribution using default random generator.double[]Generates random samples from this distribution using the specified random generator.toString()Methods inherited from class jline.lang.processes.MarkovModulated
evalACFT, getACFDecayMethods inherited from class jline.lang.processes.Markovian
acf, embedded, embeddedProb, evalCDF, evalLST, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getInitProb, getMoments, getPhi, getSkewness, getSubgenerator, getVariance, idc, idi, initProb, mean, moments, mu, numberOfPhases, numPhases, phi, process, rate, scv, setMean, setProcess, setRate, skewness, subgenerator, var, varianceMethods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, isMarkovian, name, numParams, param, setNumParams, setParam, support
-
Constructor Details
-
DMAP
-
DMAP
public DMAP() -
DMAP
-
-
Method Details
-
rand
-
rand
-
D
Description copied from class:MarkovianGets the i-th matrix of the Markovian arrival process representation. -
getMean
public double getMean()Mean inter-arrival time: pi * (I - D0)^{-1} * e -
getVar
public double getVar()Variance: 2*pi*(I-D0)^{-2}*e - mean - mean^2 -
getSCV
public double getSCV()Description copied from class:DistributionGets the squared coefficient of variation (SCV) of this distribution. SCV = Var(X) / E[X]^2. -
getMu
Row sums of (I - D0). -
sample
Description copied from class:DistributionGenerates random samples from this distribution using the specified random generator. -
sample
public double[] sample(int n) Description copied from class:DistributionGenerates random samples from this distribution using default random generator. -
getRate
public double getRate()Description copied from class:DistributionGets the rate of this distribution (inverse of mean). -
evalCDF
public double evalCDF(double t) CDF(t) = 1 - pi * D0^floor(t) * e -
getTransitionMatrix
Embedded chain P = (I - D0)^{-1} * D1. -
getNumberOfPhases
public long getNumberOfPhases()Description copied from class:MarkovianGets the number of phases in this Markovian distribution.- Overrides:
getNumberOfPhasesin classMarkovian- Returns:
- the number of phases
-
normalize
public void normalize() -
getProcess
Description copied from class:MarkovianGets the matrix representation of this Markovian process.- Overrides:
getProcessin classMarkovian- Returns:
- MatrixCell containing D0, D1, ... matrices
-
toString
-
equals
-
hashCode
public int hashCode()
-