Package jline.lang.processes
Class MMDP2
- All Implemented Interfaces:
Serializable,Copyable
A 2-state Markov-Modulated Deterministic Process.
Specialized MMDP with exactly 2 phases, using a convenient
parameterization analogous to MMPP2.
Parameterization:
- r0, r1: Deterministic rates in states 0 and 1
- sigma0: Transition rate from state 0 to state 1
- sigma1: Transition rate from state 1 to state 0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMMDP2(double r0, double r1, double sigma0, double sigma1) Creates a 2-state Markov-Modulated Deterministic Process. -
Method Summary
Modifier and TypeMethodDescriptiondoubleComputes the stationary mean rate (closed-form).longGets the number of phases in this Markovian distribution.doublegetSCV()Computes the squared coefficient of variation (closed-form).Q()Returns the generator matrix Q (closed-form for 2 states).r()Returns the rate vector (diagonal of R).R()Returns the rate matrix R (diagonal, closed-form for 2 states).toString()Methods inherited from class jline.lang.processes.MMDP
fromMAP, fromMMPP2, getMean, getProcess, getRate, isFeasibleMethods inherited from class jline.lang.processes.Markovian
acf, D, embedded, embeddedProb, evalCDF, evalCDF, evalLST, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getInitProb, getMoments, getMu, getPhi, getSkewness, getSubgenerator, getVar, getVariance, idc, idi, initProb, mean, moments, mu, numberOfPhases, numPhases, phi, process, rate, sample, sample, 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
-
MMDP2
public MMDP2(double r0, double r1, double sigma0, double sigma1) Creates a 2-state Markov-Modulated Deterministic Process.- Parameters:
r0- deterministic rate in state 0r1- deterministic rate in state 1sigma0- transition rate from state 0 to state 1sigma1- transition rate from state 1 to state 0
-
-
Method Details
-
Q
Returns the generator matrix Q (closed-form for 2 states). -
R
Returns the rate matrix R (diagonal, closed-form for 2 states). -
r
Returns the rate vector (diagonal of R). -
getNumberOfPhases
public long getNumberOfPhases()Description copied from class:MarkovianGets the number of phases in this Markovian distribution.- Overrides:
getNumberOfPhasesin classMMDP- Returns:
- the number of phases
-
getMeanRate
public double getMeanRate()Computes the stationary mean rate (closed-form). For a 2-state MMDP, the mean rate has the closed form: E[r] = (r0*sigma1 + r1*sigma0) / (sigma0 + sigma1)- Overrides:
getMeanRatein classMMDP- Returns:
- stationary mean deterministic rate
-
getSCV
public double getSCV()Computes the squared coefficient of variation (closed-form). For a 2-state MMDP, the SCV has a closed form based on the variance of rates over the stationary distribution. -
toString
-