Package jline.lang.processes
Class MMPP2
- All Implemented Interfaces:
Serializable,Copyable
A Markovian-modulated Poisson Process with 2 states
- 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.booleanChecks if this MMPP2 is equal to another object.evalACFT(int[] lags, double timescale) doubleevalCDF(double t) Evaluates the cumulative distribution function (CDF) at time t.doubleevalLST(double s) Evaluates the Laplace-Stieltjes Transform (LST) at parameter s.doubleevalMeanT(double t) Evaluates the mean count at time t.doubleevalPDF(double t) Evaluates the probability density function (PDF) at time t.doubleevalVarT(double t) Evaluates the variance at time t.static MMPP2fitCentralAndACFDecay(double mean, double var, double skew, double g2) static MMPP2fitCentralAndACFLag1(double mean, double var, double skew, double acf1) static MMPP2fitCentralAndIDC(double mean, double var, double skew, double idc) static MMPP2fitRawMomentsAndACFDecay(double m1, double m2, double m3, double gamma2) static MMPP2fitRawMomentsAndACFLag1(double m1, double m2, double m3, double rho1) static MMPP2fitRawMomentsAndIDC(double m1, double m2, double m3, double idc) doublegetACFDecay(Matrix lags) Gets the embedded Markov chain transition matrix.Gets the stationary probability vector of the embedded Markov chain.doublegetIDC()Gets the index of dispersion for counts (IDC).doublegetIDI()Gets the index of dispersion for intervals (IDI).doublegetMean()Gets the mean of this Markovian distribution.longGets the number of phases in this Markovian distribution.doublegetRate()Gets the rate of this distribution (inverse of mean).doublegetSCV()Gets the squared coefficient of variation (SCV) of this distribution.doubleGets the skewness of this distribution.doublegetVar()Gets the variance of this distribution.inthashCode()Returns the hash code for this MMPP2 process.voidNormalizes the MMPP2 so that D0+D1 rows form a proper infinitesimal generator.static MMPP2rand()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()Returns a string representation of this MMPP2 process.Methods inherited from class jline.lang.processes.MarkovModulated
getACFDecayMethods inherited from class jline.lang.processes.Markovian
acf, embedded, embeddedProb, evalCDF, getACF, getInitProb, getMoments, getMu, getPhi, getProcess, 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
-
MMPP2
public MMPP2(double lambda0, double lambda1, double sigma0, double sigma1)
-
-
Method Details
-
fitCentralAndACFDecay
-
fitCentralAndACFLag1
-
fitCentralAndIDC
-
fitRawMomentsAndACFDecay
-
fitRawMomentsAndACFLag1
-
fitRawMomentsAndIDC
-
rand
-
D
Description copied from class:MarkovianGets the i-th matrix of the Markovian arrival process representation. -
evalACFT
- Overrides:
evalACFTin classMarkovModulated
-
evalCDF
public double evalCDF(double t) Evaluates the cumulative distribution function (CDF) at time t. For MMPP2, this represents the probability that an inter-arrival time is less than or equal to t. -
evalLST
public double evalLST(double s) Evaluates the Laplace-Stieltjes Transform (LST) at parameter s. For MMPP2, LST(s) = alpha * (-T + s*I)^(-1) * t -
evalMeanT
public double evalMeanT(double t) Description copied from class:MarkovianEvaluates the mean count at time t. -
getACFDecay
-
getEmbedded
Description copied from class:MarkovianGets the embedded Markov chain transition matrix.- Overrides:
getEmbeddedin classMarkovian- Returns:
- the embedded chain matrix
-
getEmbeddedProb
Description copied from class:MarkovianGets the stationary probability vector of the embedded Markov chain.- Overrides:
getEmbeddedProbin classMarkovian- Returns:
- the embedded chain stationary probabilities
-
getIDC
public double getIDC()Description copied from class:MarkovianGets the index of dispersion for counts (IDC). -
getIDI
public double getIDI()Description copied from class:MarkovianGets the index of dispersion for intervals (IDI). For renewal processes, IDI = IDC. -
getMean
public double getMean()Description copied from class:MarkovianGets the mean of this Markovian distribution. -
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
-
getRate
public double getRate()Description copied from class:DistributionGets the rate of this distribution (inverse of mean). -
getSCV
public double getSCV()Description copied from class:DistributionGets the squared coefficient of variation (SCV) of this distribution. SCV = Var(X) / E[X]^2. -
getSkewness
public double getSkewness()Description copied from class:DistributionGets the skewness of this distribution. Skewness measures the asymmetry of the probability distribution.- Overrides:
getSkewnessin classMarkovian- Returns:
- the skewness value
-
getVar
public double getVar()Description copied from class:DistributionGets the variance of this distribution. Computed as SCV * mean^2. -
normalize
public void normalize()Normalizes the MMPP2 so that D0+D1 rows form a proper infinitesimal generator. Each row sum of (D0+D1) should equal zero for a valid generator. -
sample
public double[] sample(int n) Description copied from class:DistributionGenerates random samples from this distribution using default random generator. -
sample
Description copied from class:DistributionGenerates random samples from this distribution using the specified random generator. -
toTimeReversed
-
evalPDF
public double evalPDF(double t) Evaluates the probability density function (PDF) at time t. For MMPP2, this is the derivative of the CDF.- Parameters:
t- the time value- Returns:
- the PDF value at time t
-
evalVarT
public double evalVarT(double t) Evaluates the variance at time t. For MMPP2, this provides the variance of the counting process at time t. -
toString
Returns a string representation of this MMPP2 process. -
equals
Checks if this MMPP2 is equal to another object. -
hashCode
public int hashCode()Returns the hash code for this MMPP2 process.
-