|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.AbstractContPhaseVar
public abstract class AbstractContPhaseVar
Constructor Summary | |
---|---|
AbstractContPhaseVar()
|
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 |
double |
CV()
Computes the Coefficient of Variation of the Phase 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 variable |
no.uib.cipr.matrix.Vector |
getMat0()
Returns the exit vector from the transient states to 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 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 x)
Evaluates the loss function of order 1 at x |
double |
lossFunction2(double x)
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()
Compuetes 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 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. |
double |
stdDeviation()
Computes the Standard deviation of the Phase variable |
ContPhaseVar |
sum(ContPhaseVar v2)
Computes the sum of variables: res = A +B |
ContPhaseVar |
sum(ContPhaseVar v2,
ContPhaseVar res)
Computes the sum of variables: res = A +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 number of Continuous Phase-type distributions |
ContPhaseVar |
sumPH(DiscPhaseVar B,
ContPhaseVar res)
Returns the sum of a Phase 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 variable |
ContPhaseVar |
waitingQ(double rho)
Computes the distribution of the waiting time in queue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jphase.ContPhaseVar |
---|
copy, newVar |
Methods inherited from interface jphase.PhaseVar |
---|
getMatrix, getVector, setMatrix, setVector |
Methods inherited from interface jmarkov.basic.JMarkovElement |
---|
equals |
Constructor Detail |
---|
public AbstractContPhaseVar()
Method Detail |
---|
public ContPhaseVar sumPH(DiscPhaseVar B, ContPhaseVar res)
ContPhaseVar
sumPH
in interface ContPhaseVar
B
- Discrete-Phase Type Distribution that determines the number of
Continuous Phase-Type Distributions to sumres
- Continuous Phase Variable to store the resulting distribution
ContPhaseVar.sumPH(jphase.DiscPhaseVar,
jphase.ContPhaseVar)
public ContPhaseVar sumPH(DiscPhaseVar v2)
ContPhaseVar
sumPH
in interface ContPhaseVar
v2
- Discrete-Phase Type Distribution that determines the number of
Continuous Phase-Type Distributions to sum
ContPhaseVar.sumPH(jphase.DiscPhaseVar)
public int getNumPhases()
PhaseVar
getNumPhases
in interface PhaseVar
PhaseVar.getNumPhases()
public double getVec0()
PhaseVar
getVec0
in interface PhaseVar
PhaseVar.getVec0()
public no.uib.cipr.matrix.Vector getMat0()
PhaseVar
getMat0
in interface PhaseVar
PhaseVar.getMat0()
public double[][] getMatrixArray()
PhaseVar
getMatrixArray
in interface PhaseVar
PhaseVar.getMatrixArray()
public double[] getVectorArray()
PhaseVar
getVectorArray
in interface PhaseVar
PhaseVar.getVectorArray()
public double[] getMat0Array()
PhaseVar
getMat0Array
in interface PhaseVar
PhaseVar.getMat0Array()
public double expectedValue()
PhaseVar
expectedValue
in interface PhaseVar
PhaseVar.expectedValue()
public double variance()
PhaseVar
variance
in interface PhaseVar
PhaseVar.variance()
public double stdDeviation()
PhaseVar
stdDeviation
in interface PhaseVar
PhaseVar.stdDeviation()
public double CV()
PhaseVar
CV
in interface PhaseVar
PhaseVar.CV()
public double moment(int k)
PhaseVar
moment
in interface PhaseVar
k
- Moment
PhaseVar.moment(int)
public double cdf(double x)
PhaseVar
cdf
in interface PhaseVar
x
- Evaluation point
PhaseVar.cdf(double)
public double[] cdf(int n, double delta)
PhaseVar
cdf
in interface PhaseVar
n
- number of evaluation pointsdelta
- distance between evaluation points
PhaseVar.cdf(int, double)
public double pdf(double x)
ContPhaseVar
pdf
in interface ContPhaseVar
x
- Evaluation point
ContPhaseVar.pdf(double)
public double[] pdf(int n, double delta)
ContPhaseVar
pdf
in interface ContPhaseVar
n
- number of evaluation pointsdelta
- distance between evaluation points
ContPhaseVar.pdf(int, double)
public double prob(double a, double b)
PhaseVar
prob
in interface PhaseVar
a
- inferior limitb
- superior limit
PhaseVar.prob(double, double)
public double survival(double x)
PhaseVar
survival
in interface PhaseVar
x
- Evaluation point
PhaseVar.survival(double)
public double[] survival(int n, double delta)
PhaseVar
survival
in interface PhaseVar
n
- number of evaluation pointsdelta
- distance between evaluation points
PhaseVar.survival(int, double)
public double lossFunction1(double x)
PhaseVar
lossFunction1
in interface PhaseVar
x
- Evaluation point
PhaseVar.lossFunction1(double)
public double lossFunction2(double x)
PhaseVar
lossFunction2
in interface PhaseVar
x
- Evaluation point
PhaseVar.lossFunction2(double)
public double quantil(double p)
PhaseVar
quantil
in interface PhaseVar
p
- probability such that F(q) = p
PhaseVar.quantil(double)
public double median()
PhaseVar
median
in interface PhaseVar
PhaseVar.median()
public ContPhaseVar sum(ContPhaseVar v2, ContPhaseVar res)
ContPhaseVar
sum
in interface ContPhaseVar
v2
- Variable to sum to the originalres
- Variable to store the result
ContPhaseVar.sum(jphase.ContPhaseVar, jphase.ContPhaseVar)
public ContPhaseVar sum(ContPhaseVar v2)
ContPhaseVar
sum
in interface ContPhaseVar
v2
- Variable to sum to the original
ContPhaseVar.sum(jphase.ContPhaseVar)
public ContPhaseVar sumGeom(double p)
ContPhaseVar
sumGeom
in interface ContPhaseVar
p
- Parameter of the geometric variable
ContPhaseVar.sumGeom(double)
public ContPhaseVar mix(double p, ContPhaseVar v2, ContPhaseVar res)
ContPhaseVar
mix
in interface ContPhaseVar
p
- 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 distribution
ContPhaseVar.mix(double, jphase.ContPhaseVar, jphase.ContPhaseVar)
public ContPhaseVar mix(double p, ContPhaseVar v2)
ContPhaseVar
mix
in interface ContPhaseVar
p
- Portion of this variable in the mix (0<=p<=1)v2
- Variable to mix with the original
ContPhaseVar.mix(double, jphase.ContPhaseVar)
public ContPhaseVar min(ContPhaseVar v2, ContPhaseVar res)
ContPhaseVar
min
in interface ContPhaseVar
v2
- Variable to compare with the originalres
- Variable to store the resulting distribution
ContPhaseVar.min(jphase.ContPhaseVar, jphase.ContPhaseVar)
public ContPhaseVar min(ContPhaseVar v2)
ContPhaseVar
min
in interface ContPhaseVar
v2
- Variable to compare with the original
ContPhaseVar.min(jphase.ContPhaseVar)
public ContPhaseVar max(ContPhaseVar v2, ContPhaseVar res)
ContPhaseVar
max
in interface ContPhaseVar
v2
- Variable to compare with the originalres
- Variable to store the resulting distribution
ContPhaseVar.max(jphase.ContPhaseVar, jphase.ContPhaseVar)
public ContPhaseVar max(ContPhaseVar v2)
ContPhaseVar
max
in interface ContPhaseVar
v2
- Variable to compare with the original
ContPhaseVar.max(jphase.ContPhaseVar)
public ContPhaseVar times(double c)
ContPhaseVar
times
in interface ContPhaseVar
c
- Scale factor to be applied to the original Phase continuous
distribution
ContPhaseVar.times(double)
public ContPhaseVar residualTime(double x)
ContPhaseVar
residualTime
in interface ContPhaseVar
x
- evaluation point
ContPhaseVar.residualTime(double)
public ContPhaseVar eqResidualTime()
ContPhaseVar
eqResidualTime
in interface ContPhaseVar
ContPhaseVar.eqResidualTime()
public ContPhaseVar waitingQ(double rho)
ContPhaseVar
waitingQ
in interface ContPhaseVar
rho
- Server utilization
ContPhaseVar.waitingQ(double)
public ContPhaseVar residualVar(double a)
ContPhaseVar
residualVar
in interface ContPhaseVar
a
- Parameter for determining loss variable
ContPhaseVar.residualVar(double)
public final java.lang.String toString()
JMarkovElement
public final String toString() { return label(); }
toString
in interface JMarkovElement
toString
in interface ContPhaseVar
toString
in class java.lang.Object
ContPhaseVar.toString()
public java.lang.String label()
JMarkovElement
label
in interface JMarkovElement
JMarkovElement.description()
public java.lang.String description()
JMarkovElement
description
in interface JMarkovElement
JMarkovElement.label()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |