|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.AbstractContPhaseVar
jphase.CoxVar
public class CoxVar
Constructor Summary | |
---|---|
CoxVar(int n)
Constructor of a Cox variable with n phases |
Method Summary | |
---|---|
ContPhaseVar |
copy()
Creates a deep copy of the original Phase-Type Variable |
no.uib.cipr.matrix.Matrix |
getMatrix()
Returns the transition matrix of the Phase-Type Distribution |
no.uib.cipr.matrix.Vector |
getVector()
Returns the initial probability mass vector |
ContPhaseVar |
newVar(int n)
Creates a new variable of the same class of the original Continuous Phase-Type Variable |
void |
setMatrix(no.uib.cipr.matrix.Matrix A)
Rate Matrix = A |
void |
setVector(no.uib.cipr.matrix.Vector alpha)
Initial Probability vector = alpha |
Methods inherited from class jphase.AbstractContPhaseVar |
---|
cdf, cdf, CV, description, 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 |
---|
description, equals, label, toString |
Constructor Detail |
---|
public CoxVar(int n)
n
- number of phases
Cox variable with n phasesMethod Detail |
---|
public no.uib.cipr.matrix.Matrix getMatrix()
PhaseVar
getMatrix
in interface PhaseVar
public void setMatrix(no.uib.cipr.matrix.Matrix A)
PhaseVar
setMatrix
in interface PhaseVar
A
- Transition matrix for transient states of the
Phase-Type Distributionpublic no.uib.cipr.matrix.Vector getVector()
PhaseVar
getVector
in interface PhaseVar
public void setVector(no.uib.cipr.matrix.Vector alpha)
PhaseVar
setVector
in interface PhaseVar
alpha
- Initial probability mass vectorpublic ContPhaseVar copy()
ContPhaseVar
copy
in interface ContPhaseVar
copy
in interface PhaseVar
public ContPhaseVar newVar(int n)
ContPhaseVar
newVar
in interface ContPhaseVar
n
- number of Phases of the new Variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |