public class SparseContPhaseVar extends AbstractContPhaseVar
Constructor and Description |
---|
SparseContPhaseVar(double[] alpha,
double[][] A)
Constructs a continuous Phase-type Distribution
with sparse representation (CompRowMatrix)
|
SparseContPhaseVar(int n)
Constructs 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)
Constructs a continuous Phase-type Distribution
with sparse representation (CompRowMatrix)
|
SparseContPhaseVar(no.uib.cipr.matrix.Vector alpha,
no.uib.cipr.matrix.Matrix A)
Constructs a continuous Phase-type Distribution
with sparse representation (CompRowMatrix)
|
Modifier and Type | Method and Description |
---|---|
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)
Sets the transition matrix of the Phase-type distribution to be A
|
void |
setVector(no.uib.cipr.matrix.Vector alpha)
Sets the initial probability vector to be alpha
|
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals
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 vectorpublic no.uib.cipr.matrix.Matrix getMatrix()
PhaseVar
public void setMatrix(no.uib.cipr.matrix.Matrix A)
PhaseVar
A
- Transition matrix for the 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