public interface DiscPhaseVar extends PhaseVar
| Modifier and Type | Method and Description |
|---|---|
DiscPhaseVar |
copy()
Creates a deep copy of the original Phase-Type Variable
|
DiscPhaseVar |
max(DiscPhaseVar B)
Returns the maximum between the variable B and
the original: res = max(A,B)
|
DiscPhaseVar |
max(DiscPhaseVar B,
DiscPhaseVar res)
Returns the maximum between the variable B and
the original: res = max(A,B)
|
DiscPhaseVar |
min(DiscPhaseVar B)
Returns the minimum between the variable B and
the original: res = min(A,B)
|
DiscPhaseVar |
min(DiscPhaseVar B,
DiscPhaseVar res)
Returns the minimum between the variable B and
the original: res = min(A,B)
|
DiscPhaseVar |
mix(double p,
DiscPhaseVar B)
Computes the distribution of the mix:
res = A*p + B*(1-p)
|
DiscPhaseVar |
mix(double p,
DiscPhaseVar B,
DiscPhaseVar res)
Computes the distribution of the mix:
res = A*p + B*(1-p)
|
DiscPhaseVar |
newVar(int n)
Creates a new variable of the same class of the original
Discrete Phase-Type Variable
|
double |
pmf(int k)
Evaluates the probability mass function at k
|
double[] |
pmf(int n,
int delta)
Evaluates the probability mass function at
n values of x, from zero to n times delta
|
DiscPhaseVar |
sum(DiscPhaseVar B)
Computes the sum of variables: res = A +B
|
DiscPhaseVar |
sum(DiscPhaseVar B,
DiscPhaseVar res)
Computes the sum of variables: res = A +B
|
DiscPhaseVar |
sumGeom(double p)
Returns the sum of a geometric number of
independent copies of this variable
|
DiscPhaseVar |
sumPH(DiscPhaseVar B)
Returns the sum of a Phase-type-distributed number of Discrete Phase-type
distributions
|
DiscPhaseVar |
sumPH(DiscPhaseVar B,
DiscPhaseVar res)
Returns the sum of a Phase-type-distributed number of Discrete Phase-type
distributions
|
java.lang.String |
toString()
This method returns a short String used in the user interface to describe
this element.
|
cdf, cdf, CV, expectedValue, getMat0, getMat0Array, getMatrix, getMatrixArray, getNumPhases, getVec0, getVector, getVectorArray, lossFunction1, lossFunction2, median, moment, prob, quantil, setMatrix, setVector, stdDeviation, survival, survival, variancedescription, equals, labelDiscPhaseVar sumPH(DiscPhaseVar B, DiscPhaseVar res)
B - Discrete-Phase Type Distribution that determines
the number of Discrete Phase-Type Distributions to sumres - Discrete Phase Variable to store the resulting
distributionDiscPhaseVar sumPH(DiscPhaseVar B)
B - Discrete-Phase Type Distribution that determines
the number of Discrete Phase-Type Distributions to sumdouble pmf(int k)
k - Evaluation pointdouble[] pmf(int n,
int delta)
n - number of evaluation pointsdelta - distance between evaluation pointsDiscPhaseVar sum(DiscPhaseVar B, DiscPhaseVar res)
B - Variable to sum to the originalres - Variable to store the resultDiscPhaseVar sum(DiscPhaseVar B)
B - Variable to sum to the originalDiscPhaseVar sumGeom(double p)
p - Parameter of the geometric variableDiscPhaseVar mix(double p, DiscPhaseVar B, DiscPhaseVar 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
distributionDiscPhaseVar mix(double p, DiscPhaseVar B)
B - Variable to mix with the originalp - Portion of this variable in the mix (0<=p<=1)
with the same number of phases of the original
distributionDiscPhaseVar min(DiscPhaseVar B, DiscPhaseVar res)
B - Variable to compare with the originalres - Variable to store the resulting distributionDiscPhaseVar min(DiscPhaseVar B)
B - Variable to compare with the originalDiscPhaseVar max(DiscPhaseVar B, DiscPhaseVar res)
B - Variable to compare with the originalres - Variable to store the resulting distributionDiscPhaseVar max(DiscPhaseVar B)
B - Variable to compare with the originalDiscPhaseVar copy()
DiscPhaseVar newVar(int n)
n - number of Phases of the new Variablejava.lang.String toString()
JMarkovElement
public final String toString() {
return label();
}
toString in interface JMarkovElementtoString in class java.lang.ObjectJMarkovElement.label()