public abstract class AbstractContPhaseVar extends java.lang.Object implements ContPhaseVar
| Constructor and Description |
|---|
AbstractContPhaseVar() |
| Modifier and Type | Method and Description |
|---|---|
double |
cdf(double x)
Evaluates the cumulative distribution function at x
|
double[] |
cdf(int n,
double delta)
Evaluates the cumulative distribution function at n values of x,
starting with x=0, step delta
|
double |
CV()
Computes the Coefficient of Variation
of the Phase-type variable
|
java.lang.String |
description()
This method return a complete verbal describtion of this element.
|
ContPhaseVar |
eqResidualTime()
Computes the Equilibrium Residual Distribution
|
double |
expectedValue()
Computes the Expected Value of the Phase-type variable
|
no.uib.cipr.matrix.Vector |
getMat0()
Returns the exit vector from the transient states into absorption
|
double[] |
getMat0Array()
Returns the exit vector in double[] format
|
double[][] |
getMatrixArray()
Returns the transition matrix in double format
|
int |
getNumPhases()
Returns the number of phases of the Phase-type distribution
|
double |
getVec0()
Returns the probability mass at zero (alpha_0)
|
double[] |
getVectorArray()
Returns the initial probability
mass vector in double[] format
|
java.lang.String |
label()
This method returns a short String used in the user interface to describe
this element.
|
double |
lossFunction1(double t)
Evaluates the loss function of order 1
at x
|
double |
lossFunction2(double t)
Evaluates the loss function of order 2
at x
|
ContPhaseVar |
max(ContPhaseVar v2)
Returns the maximum between the variable B and the original: res =
max(A,B)
|
ContPhaseVar |
max(ContPhaseVar v2,
ContPhaseVar res)
Returns the maximum between the variable B and the original: res =
max(A,B)
|
double |
median()
Computes the median of the distribution
|
ContPhaseVar |
min(ContPhaseVar v2)
Returns the minimum between the variable B and the original: res =
min(A,B)
|
ContPhaseVar |
min(ContPhaseVar v2,
ContPhaseVar res)
Returns the minimum between the variable B and the original: res =
min(A,B)
|
ContPhaseVar |
mix(double p,
ContPhaseVar v2)
Computes the distribution of the mix: res = A*p + B*(1-p)
|
ContPhaseVar |
mix(double p,
ContPhaseVar v2,
ContPhaseVar res)
Computes the distribution of the mix: res = A*p + B*(1-p)
|
double |
moment(int k)
Compuetes the k-th Moment of the 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
|
double |
prob(double a,
double b)
Computes the probability that this variable
takes a value between a and b
|
double |
quantil(double p)
Computes the quantile q of the distribution,
such that F(q) = p
|
ContPhaseVar |
residualTime(double x)
Computes the Residual Time Distribution
|
ContPhaseVar |
residualVar(double a)
Computes the variable (X-a)+, i.e. the distribution
takes the value of the original distribution if it
is greater or equal to a.
|
double |
stdDeviation()
Computes the Standard deviation of the Phase-type variable
|
ContPhaseVar |
sum(ContPhaseVar v2)
Computes the sum of this variable and B
|
ContPhaseVar |
sum(ContPhaseVar v2,
ContPhaseVar res)
Computes the sum of this variable and B
|
ContPhaseVar |
sumGeom(double p)
Returns the sum of a geometric number of independent copies of this
variable
|
ContPhaseVar |
sumPH(DiscPhaseVar v2)
Returns the sum of a Phase-type-distributed number of Continuous Phase-type distributions
|
ContPhaseVar |
sumPH(DiscPhaseVar B,
ContPhaseVar res)
Returns the sum of a Phase-type-distributed number of Continuous Phase-type distributions
|
double |
survival(double x)
Evaluates the survival function at x
|
double[] |
survival(int n,
double delta)
Evaluates the survival function at n values of x,
starting with x=0, step delta
|
ContPhaseVar |
times(double c)
Returns a Phase continuous variable that is the original one times c
|
java.lang.String |
toString()
This method returns a short String used in the user interface to describe
this element.
|
double |
variance()
Computes the variance of the Phase-type variable
|
ContPhaseVar |
waitingQ(double rho)
Computes the distribution of the waiting time in queue
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, newVarequalspublic ContPhaseVar sumPH(DiscPhaseVar B, ContPhaseVar res)
ContPhaseVarsumPH in interface ContPhaseVarB - Discrete-Phase Type Distribution that determines the number of
Continuous Phase-Type Distributions to sumres - Continuous Phase Variable to store the resulting distributionContPhaseVar.sumPH(jphase.DiscPhaseVar,
jphase.ContPhaseVar)public ContPhaseVar sumPH(DiscPhaseVar v2)
ContPhaseVarsumPH in interface ContPhaseVarv2 - Discrete-Phase Type Distribution that determines the number of
Continuous Phase-Type Distributions to sumContPhaseVar.sumPH(jphase.DiscPhaseVar)public int getNumPhases()
PhaseVargetNumPhases in interface PhaseVarPhaseVar.getNumPhases()public double getVec0()
PhaseVargetVec0 in interface PhaseVarPhaseVar.getVec0()public no.uib.cipr.matrix.Vector getMat0()
PhaseVargetMat0 in interface PhaseVarPhaseVar.getMat0()public double[][] getMatrixArray()
PhaseVargetMatrixArray in interface PhaseVarPhaseVar.getMatrixArray()public double[] getVectorArray()
PhaseVargetVectorArray in interface PhaseVarPhaseVar.getVectorArray()public double[] getMat0Array()
PhaseVargetMat0Array in interface PhaseVarPhaseVar.getMat0Array()public double expectedValue()
PhaseVarexpectedValue in interface PhaseVarPhaseVar.expectedValue()public double variance()
PhaseVarvariance in interface PhaseVarPhaseVar.variance()public double stdDeviation()
PhaseVarstdDeviation in interface PhaseVarPhaseVar.stdDeviation()public double CV()
PhaseVarCV in interface PhaseVarPhaseVar.CV()public double moment(int k)
PhaseVarmoment in interface PhaseVark - Moment to computePhaseVar.moment(int)public double cdf(double x)
PhaseVarcdf in interface PhaseVarx - Evaluation pointPhaseVar.cdf(double)public double[] cdf(int n,
double delta)
PhaseVarcdf in interface PhaseVarn - number of evaluation pointsdelta - distance between evaluation pointsPhaseVar.cdf(int, double)public double pdf(double x)
ContPhaseVarpdf in interface ContPhaseVarx - Evaluation pointContPhaseVar.pdf(double)public double[] pdf(int n,
double delta)
ContPhaseVarpdf in interface ContPhaseVarn - number of evaluation pointsdelta - distance between evaluation pointsContPhaseVar.pdf(int, double)public double prob(double a,
double b)
PhaseVarprob in interface PhaseVara - inferior limitb - superior limitPhaseVar.prob(double, double)public double survival(double x)
PhaseVarsurvival in interface PhaseVarx - Evaluation pointPhaseVar.survival(double)public double[] survival(int n,
double delta)
PhaseVarsurvival in interface PhaseVarn - number of evaluation pointsdelta - distance between evaluation pointsPhaseVar.survival(int, double)public double lossFunction1(double t)
PhaseVarlossFunction1 in interface PhaseVart - Evaluation pointPhaseVar.lossFunction1(double)public double lossFunction2(double t)
PhaseVarlossFunction2 in interface PhaseVart - Evaluation pointPhaseVar.lossFunction2(double)public double quantil(double p)
PhaseVarquantil in interface PhaseVarp - probability such that F(q) = pPhaseVar.quantil(double)public double median()
PhaseVarmedian in interface PhaseVarPhaseVar.median()public ContPhaseVar sum(ContPhaseVar v2, ContPhaseVar res)
ContPhaseVarsum in interface ContPhaseVarv2 - Variable to sum to the originalres - Variable to store the resultContPhaseVar.sum(jphase.ContPhaseVar, jphase.ContPhaseVar)public ContPhaseVar sum(ContPhaseVar v2)
ContPhaseVarsum in interface ContPhaseVarv2 - Variable to sum to the originalContPhaseVar.sum(jphase.ContPhaseVar)public ContPhaseVar sumGeom(double p)
ContPhaseVarsumGeom in interface ContPhaseVarp - Parameter of the geometric variableContPhaseVar.sumGeom(double)public ContPhaseVar mix(double p, ContPhaseVar v2, ContPhaseVar res)
ContPhaseVarmix in interface ContPhaseVarp - Portion of this variable in the mix (0<=p<=1)v2 - Variable to mix with the originalres - Variable to store the resulting distribution with the same
number of phases of the original distributionContPhaseVar.mix(double, jphase.ContPhaseVar, jphase.ContPhaseVar)public ContPhaseVar mix(double p, ContPhaseVar v2)
ContPhaseVarmix in interface ContPhaseVarp - Portion of this variable in the mix (0<=p<=1)v2 - Variable to mix with the originalContPhaseVar.mix(double, jphase.ContPhaseVar)public ContPhaseVar min(ContPhaseVar v2, ContPhaseVar res)
ContPhaseVarmin in interface ContPhaseVarv2 - Variable to compare with the originalres - Variable to store the resulting distributionContPhaseVar.min(jphase.ContPhaseVar, jphase.ContPhaseVar)public ContPhaseVar min(ContPhaseVar v2)
ContPhaseVarmin in interface ContPhaseVarv2 - Variable to compare with the originalContPhaseVar.min(jphase.ContPhaseVar)public ContPhaseVar max(ContPhaseVar v2, ContPhaseVar res)
ContPhaseVarmax in interface ContPhaseVarv2 - Variable to compare with the originalres - Variable to store the resulting distributionContPhaseVar.max(jphase.ContPhaseVar, jphase.ContPhaseVar)public ContPhaseVar max(ContPhaseVar v2)
ContPhaseVarmax in interface ContPhaseVarv2 - Variable to compare with the originalContPhaseVar.max(jphase.ContPhaseVar)public ContPhaseVar times(double c)
ContPhaseVartimes in interface ContPhaseVarc - Scale factor to be applied to the original Phase continuous
distributionContPhaseVar.times(double)public ContPhaseVar residualTime(double x)
ContPhaseVarresidualTime in interface ContPhaseVarx - evaluation pointContPhaseVar.residualTime(double)public ContPhaseVar eqResidualTime()
ContPhaseVareqResidualTime in interface ContPhaseVarContPhaseVar.eqResidualTime()public ContPhaseVar waitingQ(double rho)
ContPhaseVarwaitingQ in interface ContPhaseVarrho - Server utilizationContPhaseVar.waitingQ(double)public ContPhaseVar residualVar(double a)
ContPhaseVarresidualVar in interface ContPhaseVara - Parameter for determining loss variableContPhaseVar.residualVar(double)public final java.lang.String toString()
JMarkovElement
public final String toString() {
return label();
}
toString in interface JMarkovElementtoString in interface ContPhaseVartoString in class java.lang.ObjectContPhaseVar.toString()public java.lang.String label()
JMarkovElementlabel in interface JMarkovElementJMarkovElement.description()public java.lang.String description()
JMarkovElementdescription in interface JMarkovElementJMarkovElement.label()