|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjphase.AbstractContPhaseVar
jphase.ErlangCoxianVar
public class ErlangCoxianVar
Phase-Type representation of an ErlangCoxian distribution as defined by Osogami and Harchol in "Closed form solutions for mapping general distributions to quasi-minimal PH distributions", 2005.
| Constructor Summary | |
|---|---|
ErlangCoxianVar()
Constructor of an Erlang Coxian variable in dense representation. |
|
ErlangCoxianVar(int n)
Constructor of a ErlangCoxian variable in dense representation |
|
ErlangCoxianVar(int n,
double p,
double lambdaY,
double lambdaX1,
double lambdaX2,
double px)
Constructor of a ErlangCoxian variable in dense representation |
|
| Method Summary | |
|---|---|
PhaseVar |
convoExpo(double lambda)
Creates a Dense Continuous Phase Variable that represents the convolution of the original ErlangCoxian distribution and an exponential phase with rate lambda |
ContPhaseVar |
copy()
Creates a deep copy of the original Phase-Type Variable |
java.lang.String |
description()
This method return a complete verbal describtion of this element. |
double |
getLambdaX1()
|
double |
getLambdaX2()
|
double |
getLambdaY()
|
no.uib.cipr.matrix.Matrix |
getMatrix()
Returns the transition matrix of the Phase-Type Distribution |
int |
getN()
|
double |
getP()
|
double |
getPx()
|
no.uib.cipr.matrix.Vector |
getVector()
Returns the initial probability mass vector |
PhaseVar |
mixtureExpo(double lambda,
double p)
Creates a Dense Continuous Phase Variable that represents the mixture of the original ErlangCoxian distribution (p) and an exponential phase with rate lambda (1-p) |
ContPhaseVar |
newVar(int n)
Creates a new variable of the same class of the original Continuous Phase-Type Variable |
void |
setLambdaX1(double lambdaX1)
|
void |
setLambdaX2(double lambdaX2)
|
void |
setLambdaY(double lambdaY)
|
void |
setMatrix(no.uib.cipr.matrix.Matrix A)
Rate Matrix = A |
void |
setN(int n)
|
void |
setP(double p)
|
void |
setPx(double px)
|
void |
setVector(no.uib.cipr.matrix.Vector alpha)
Initial Probability vector = alpha |
| Methods inherited from class jphase.AbstractContPhaseVar |
|---|
cdf, cdf, CV, eqResidualTime, expectedValue, getMat0, getMat0Array, getMatrixArray, getNumPhases, getVec0, getVectorArray, label, lossFunction1, lossFunction2, max, max, median, min, min, mix, mix, moment, pdf, pdf, prob, quantil, residualTime, residualVar, stdDeviation, sum, sum, sumGeom, sumPH, sumPH, survival, survival, times, toString, variance, waitingQ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jphase.PhaseVar |
|---|
cdf, cdf, CV, expectedValue, getMat0, getMat0Array, getMatrixArray, getNumPhases, getVec0, getVectorArray, lossFunction1, lossFunction2, median, moment, prob, quantil, stdDeviation, survival, survival, variance |
| Methods inherited from interface jmarkov.basic.JMarkovElement |
|---|
equals, label, toString |
| Constructor Detail |
|---|
public ErlangCoxianVar()
public ErlangCoxianVar(int n,
double p,
double lambdaY,
double lambdaX1,
double lambdaX2,
double px)
n - total number of phases (Erlang degree: n-2)p - probability of having a positive elapse time
in the distribution. 1-p: mass probability at zerolambdaY - rate of the Erlang distributionlambdaX1 - rate of the first stage of the Coxian
distributionlambdaX2 - rate of the second stage of the Coxian
distributionpx - probability of going from the first to the second
stage in the Coxian distribution. 1-p: probability of
absorption at the first stage of the Coxian distributionpublic ErlangCoxianVar(int n)
n - total number of phases (Erlang degree: n-2)
absorption at the first stage of the Coxian distribution| Method Detail |
|---|
public int getN()
public void setN(int n)
n - Total number of phasespublic double getP()
public void setP(double p)
p - Probability of having a positive elapse time
in the distribution. 1-p: mass probability at zeropublic double getLambdaY()
public void setLambdaY(double lambdaY)
lambdaY - Erlang distribution ratepublic double getLambdaX1()
public void setLambdaX1(double lambdaX1)
lambdaX1 - Rate of the first stage at the Coxian
distributionpublic double getLambdaX2()
public void setLambdaX2(double lambdaX2)
lambdaX2 - Rate of the second stage at the Coxian
distributionpublic double getPx()
public void setPx(double px)
px - Probability of going from the first to the second
stage in the Coxian distribution. 1-p: probability of
absorption at the first stage if the Coxian distributionpublic no.uib.cipr.matrix.Matrix getMatrix()
PhaseVar
getMatrix in interface PhaseVarpublic void setMatrix(no.uib.cipr.matrix.Matrix A)
PhaseVar
setMatrix in interface PhaseVarA - Transition matrix for transient states of the
Phase-Type Distributionpublic no.uib.cipr.matrix.Vector getVector()
PhaseVar
getVector in interface PhaseVarpublic void setVector(no.uib.cipr.matrix.Vector alpha)
PhaseVar
setVector in interface PhaseVaralpha - Initial probability mass vectorpublic ContPhaseVar copy()
ContPhaseVar
copy in interface ContPhaseVarcopy in interface PhaseVarpublic ContPhaseVar newVar(int n)
ContPhaseVar
newVar in interface ContPhaseVarn - number of Phases of the new Variable
public PhaseVar mixtureExpo(double lambda,
double p)
lambda - rate of the exponential phase to be included
in the mixturep - probability mass of the ErlangCoxian distribution
in the mixture
public PhaseVar convoExpo(double lambda)
lambda - rate of the exponential phase to be included
in the convolution
public java.lang.String description()
JMarkovElement
description in interface JMarkovElementdescription in class AbstractContPhaseVarJMarkovElement.label()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||