|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiscPhaseVar
Method Summary | |
---|---|
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 number of Discrete Phase-type distributions |
DiscPhaseVar |
sumPH(DiscPhaseVar B,
DiscPhaseVar res)
Returns the sum of a Phase 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. |
Methods inherited from interface jphase.PhaseVar |
---|
cdf, cdf, CV, expectedValue, getMat0, getMat0Array, getMatrix, getMatrixArray, getNumPhases, getVec0, getVector, getVectorArray, lossFunction1, lossFunction2, median, moment, prob, quantil, setMatrix, setVector, stdDeviation, survival, survival, variance |
Methods inherited from interface jmarkov.basic.JMarkovElement |
---|
description, equals, label |
Method Detail |
---|
DiscPhaseVar 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
distribution
DiscPhaseVar sumPH(DiscPhaseVar B)
B
- Discrete-Phase Type Distribution that determines
the number of Discrete Phase-Type Distributions to sum
double pmf(int k)
k
- Evaluation point
double[] pmf(int n, int delta)
n
- number of evaluation pointsdelta
- distance between evaluation points
DiscPhaseVar sum(DiscPhaseVar B, DiscPhaseVar res)
B
- Variable to sum to the originalres
- Variable to store the result
DiscPhaseVar sum(DiscPhaseVar B)
B
- Variable to sum to the original
DiscPhaseVar sumGeom(double p)
p
- Parameter of the geometric variable
DiscPhaseVar 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
distribution
DiscPhaseVar 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
distribution
DiscPhaseVar min(DiscPhaseVar B, DiscPhaseVar res)
B
- Variable to compare with the originalres
- Variable to store the resulting distribution
DiscPhaseVar min(DiscPhaseVar B)
B
- Variable to compare with the original
DiscPhaseVar max(DiscPhaseVar B, DiscPhaseVar res)
B
- Variable to compare with the originalres
- Variable to store the resulting distribution
DiscPhaseVar max(DiscPhaseVar B)
B
- Variable to compare with the original
DiscPhaseVar copy()
copy
in interface PhaseVar
DiscPhaseVar newVar(int n)
n
- number of Phases of the new Variable
java.lang.String toString()
JMarkovElement
public final String toString() { return label(); }
toString
in interface JMarkovElement
toString
in class java.lang.Object
JMarkovElement.label()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |