public interface ContPhaseVar extends PhaseVar
Modifier and Type | Method and Description |
---|---|
ContPhaseVar |
copy()
Creates a deep copy of the original Phase-Type Variable
|
ContPhaseVar |
eqResidualTime()
Computes the Equilibrium Residual Distribution
|
ContPhaseVar |
max(ContPhaseVar B)
Returns the maximum between the variable B and the original: res =
max(A,B)
|
ContPhaseVar |
max(ContPhaseVar B,
ContPhaseVar res)
Returns the maximum between the variable B and the original: res =
max(A,B)
|
ContPhaseVar |
min(ContPhaseVar B)
Returns the minimum between the variable B and the original: res =
min(A,B)
|
ContPhaseVar |
min(ContPhaseVar B,
ContPhaseVar res)
Returns the minimum between the variable B and the original: res =
min(A,B)
|
ContPhaseVar |
mix(double p,
ContPhaseVar B)
Computes the distribution of the mix: res = A*p + B*(1-p)
|
ContPhaseVar |
mix(double p,
ContPhaseVar B,
ContPhaseVar res)
Computes the distribution of the mix: res = A*p + B*(1-p)
|
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
|
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.
|
ContPhaseVar |
sum(ContPhaseVar B)
Computes the sum of this variable and B
|
ContPhaseVar |
sum(ContPhaseVar B,
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 B)
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
|
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.
|
ContPhaseVar |
waitingQ(double rho)
Computes the distribution of the waiting time in queue
|
cdf, cdf, CV, expectedValue, getMat0, getMat0Array, getMatrix, getMatrixArray, getNumPhases, getVec0, getVector, getVectorArray, lossFunction1, lossFunction2, median, moment, prob, quantil, setMatrix, setVector, stdDeviation, survival, survival, variance
description, equals, label
ContPhaseVar sumPH(DiscPhaseVar B, ContPhaseVar res)
B
- Discrete-Phase Type Distribution that determines the number of
Continuous Phase-Type Distributions to sumres
- Continuous Phase Variable to store the resulting distributionContPhaseVar sumPH(DiscPhaseVar B)
B
- Discrete-Phase Type Distribution that determines the number of
Continuous Phase-Type Distributions to sumdouble pdf(double x)
x
- Evaluation pointdouble[] pdf(int n, double delta)
n
- number of evaluation pointsdelta
- distance between evaluation pointsContPhaseVar sum(ContPhaseVar B, ContPhaseVar res)
B
- Variable to sum to the originalres
- Variable to store the resultContPhaseVar sum(ContPhaseVar B)
B
- Variable to sum to the originalContPhaseVar sumGeom(double p)
p
- Parameter of the geometric variableContPhaseVar mix(double p, ContPhaseVar B, ContPhaseVar res)
B
- Variable to mix with the originalp
- Portion of this variable in the mix (0<=p<=1)res
- Variable to store the resulting distribution with the same
number of phases of the original distributionContPhaseVar mix(double p, ContPhaseVar B)
B
- Variable to mix with the originalp
- Portion of this variable in the mix (0<=p<=1)ContPhaseVar min(ContPhaseVar B, ContPhaseVar res)
B
- Variable to compare with the originalres
- Variable to store the resulting distributionContPhaseVar min(ContPhaseVar B)
B
- Variable to compare with the originalContPhaseVar max(ContPhaseVar B, ContPhaseVar res)
B
- Variable to compare with the originalres
- Variable to store the resulting distributionContPhaseVar max(ContPhaseVar B)
B
- Variable to compare with the originalContPhaseVar times(double c)
c
- Scale factor to be applied to the original Phase continuous
distributionContPhaseVar residualTime(double x)
x
- evaluation pointContPhaseVar eqResidualTime()
ContPhaseVar waitingQ(double rho)
rho
- Server utilizationContPhaseVar residualVar(double a)
a
- Parameter for determining loss variableContPhaseVar copy()
ContPhaseVar newVar(int n)
n
- number of Phases of the new Variablejava.lang.String toString()
JMarkovElement
public final String toString() { return label(); }
toString
in interface JMarkovElement
toString
in class java.lang.Object
JMarkovElement.label()