|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.AbstractContPhaseVar
jphase.HyperErlangVar
public class HyperErlangVar
Constructor Summary | |
---|---|
HyperErlangVar()
Constructor of a Hyper Erlang variable in dense representation. |
|
HyperErlangVar(int n)
Constructor of a Hyper Erlang variable with n phases in dense representation |
|
HyperErlangVar(int[] r,
double[] alphas,
double[] lambdas,
boolean deep)
Constructor of a Hyper Erlang variable in dense representation |
|
HyperErlangVar(int N,
int M,
int[] r,
double[] alphas,
double[] lambdas,
boolean deep)
Constructor of a Hyper Erlang variable in dense representation |
Method Summary | |
---|---|
double |
cdf(double x)
Evaluates the cumulative density function at x |
double[] |
cdf(int n,
double delta)
Evaluates the Cumulative Density Function at n values of x, starting with x=0, step delta |
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 |
expectedValue()
Computes the Expected Value of the Phase variable |
double[] |
getAlphas()
|
double[] |
getLambdas()
|
int |
getM()
|
no.uib.cipr.matrix.Matrix |
getMatrix()
Returns the transition matrix of the Phase-Type Distribution |
int |
getN()
|
int[] |
getR()
|
no.uib.cipr.matrix.Vector |
getVector()
Returns the initial probability mass vector |
double |
moment(int k)
Compuetes the k-th Moment of the Phase variable |
ContPhaseVar |
newVar(int n)
Creates a new variable of the same class of the original Continuous Phase-Type Variable |
double |
pdf(double x)
Evaluates the probability density function at x |
double[] |
pdf(int n,
double delta)
Evaluates the Probability Density Function at n values of x, starting with x=0, step delta |
void |
setAlphas(double[] alphas)
|
void |
setLambdas(double[] lambdas)
|
void |
setM(int M)
|
void |
setMatrix(no.uib.cipr.matrix.Matrix A)
Rate Matrix = A |
void |
setN(int N)
|
void |
setR(int[] r)
|
void |
setVector(no.uib.cipr.matrix.Vector alpha)
Initial Probability vector = alpha |
Methods inherited from class jphase.AbstractContPhaseVar |
---|
CV, eqResidualTime, getMat0, getMat0Array, getMatrixArray, getNumPhases, getVec0, getVectorArray, label, lossFunction1, lossFunction2, max, max, median, min, min, mix, mix, 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 |
---|
CV, getMat0, getMat0Array, getMatrixArray, getNumPhases, getVec0, getVectorArray, lossFunction1, lossFunction2, median, prob, quantil, stdDeviation, survival, survival, variance |
Methods inherited from interface jmarkov.basic.JMarkovElement |
---|
equals, label, toString |
Constructor Detail |
---|
public HyperErlangVar()
public HyperErlangVar(int n)
n
- Total number of phasespublic HyperErlangVar(int N, int M, int[] r, double[] alphas, double[] lambdas, boolean deep)
N
- Total number of phasesM
- Number of branchesr
- Number of phases in each branchalphas
- Probability associated to each branchlambdas
- Rate associated to each branchdeep
- True if this is a deep constructor, false if notpublic HyperErlangVar(int[] r, double[] alphas, double[] lambdas, boolean deep)
r
- Number of phases in each branchalphas
- Probability associated to each branchlambdas
- Rate associated to each branchdeep
- True if this is a deep constructor, false if notMethod Detail |
---|
public int getN()
public void setN(int N)
N
- Total number of phases to setpublic int getM()
public void setM(int M)
M
- Number of branches to setpublic int[] getR()
public void setR(int[] r)
r
- Number of phases in each branch to setpublic double[] getAlphas()
public void setAlphas(double[] alphas)
alphas
- Probability associated to each branch to setpublic double[] getLambdas()
public void setLambdas(double[] lambdas)
lambdas
- Rates associated to each branch to setpublic 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
public double cdf(double x)
PhaseVar
cdf
in interface PhaseVar
cdf
in class AbstractContPhaseVar
x
- Evaluation point
PhaseVar.cdf(double)
public double[] cdf(int n, double delta)
PhaseVar
cdf
in interface PhaseVar
cdf
in class AbstractContPhaseVar
n
- number of evaluation pointsdelta
- distance between evaluation points
PhaseVar.cdf(int, double)
public double pdf(double x)
ContPhaseVar
pdf
in interface ContPhaseVar
pdf
in class AbstractContPhaseVar
x
- Evaluation point
ContPhaseVar.pdf(double)
public double[] pdf(int n, double delta)
ContPhaseVar
pdf
in interface ContPhaseVar
pdf
in class AbstractContPhaseVar
n
- number of evaluation pointsdelta
- distance between evaluation points
ContPhaseVar.pdf(int, double)
public double expectedValue()
PhaseVar
expectedValue
in interface PhaseVar
expectedValue
in class AbstractContPhaseVar
PhaseVar.expectedValue()
public double moment(int k)
PhaseVar
moment
in interface PhaseVar
moment
in class AbstractContPhaseVar
k
- Moment
PhaseVar.moment(int)
public java.lang.String description()
JMarkovElement
description
in interface JMarkovElement
description
in class AbstractContPhaseVar
JMarkovElement.label()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |