|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.AbstractContPhaseVar
jphase.SparseContPhaseVar
public class SparseContPhaseVar
Field Summary | |
---|---|
protected no.uib.cipr.matrix.sparse.FlexCompRowMatrix |
A
Rate Matrix in Sparse representation (CompRowMatrix) |
protected no.uib.cipr.matrix.sparse.SparseVector |
alpha
Initial Probability distribution vector |
Constructor Summary | |
---|---|
SparseContPhaseVar(double[] alpha,
double[][] A)
Construcs a continuous Phase-type Distribution with sparse representation (CompRowMatrix) |
|
SparseContPhaseVar(int n)
Construcs an empty Continuous Phase-type Distribution of size n with sparse representation (CompRowMatrix) |
|
SparseContPhaseVar(no.uib.cipr.matrix.sparse.SparseVector alpha,
no.uib.cipr.matrix.sparse.FlexCompRowMatrix A)
Construcs a continuous Phase-type Distribution with sparse representation (CompRowMatrix) |
|
SparseContPhaseVar(no.uib.cipr.matrix.Vector alpha,
no.uib.cipr.matrix.Matrix A)
Construcs a continuous Phase-type Distribution with sparse representation (CompRowMatrix) |
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 jmarkov.basic.JMarkovElement |
---|
equals |
Field Detail |
---|
protected no.uib.cipr.matrix.sparse.FlexCompRowMatrix A
protected no.uib.cipr.matrix.sparse.SparseVector alpha
Constructor Detail |
---|
public SparseContPhaseVar(int n)
n
- size of the Continuous Phase-type Distributionpublic SparseContPhaseVar(no.uib.cipr.matrix.sparse.SparseVector alpha, no.uib.cipr.matrix.sparse.FlexCompRowMatrix A)
A
- rate matrixalpha
- initial probability distribution vectorpublic SparseContPhaseVar(no.uib.cipr.matrix.Vector alpha, no.uib.cipr.matrix.Matrix A)
A
- rate matrixalpha
- initial probability distribution vectorpublic SparseContPhaseVar(double[] alpha, double[][] A)
A
- rate matrixalpha
- initial probability distribution vectorMethod Detail |
---|
public no.uib.cipr.matrix.Matrix getMatrix()
PhaseVar
public void setMatrix(no.uib.cipr.matrix.Matrix A)
PhaseVar
A
- Transition matrix for transient states of the
Phase-Type Distributionpublic no.uib.cipr.matrix.Vector getVector()
PhaseVar
public void setVector(no.uib.cipr.matrix.Vector alpha)
PhaseVar
alpha
- Initial probability mass vectorpublic ContPhaseVar copy()
ContPhaseVar
public ContPhaseVar newVar(int n)
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 |