Package jline.lang.processes
Class PH
- All Implemented Interfaces:
Serializable,Copyable
A general phase-type (PH) distribution
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevalCDF(double t) Evaluates the cumulative distribution function (CDF) at time t.doubleevalLST(double s) Evaluate the Laplace-Stieltjes Transform at sGets the initial probability vector.doublegetMean()Gets the mean of this Markovian distribution.longGets the number of phases in this Markovian distribution.Gets the matrix representation of this Markovian process.doublegetRate()Gets the rate of this distribution (inverse of mean).doublegetSCV()Gets the squared coefficient of variation (SCV) of this distribution.doubleGets the skewness of this distribution.doublegetVar()Gets the variance of this distribution.initProb()Kotlin-style property alias for getInitProb()doublemean()Kotlin-style property alias for getMean()longKotlin-style property alias for getNumberOfPhases()longKotlin-style property alias for getNumberOfPhases()process()Kotlin-style property alias for getProcess()doublerate()Kotlin-style property alias for getRate()double[]sample(int n) Generates random samples from this distribution using default random generator.double[]Generates random samples from this distribution using the specified random generator.doublescv()Kotlin-style property alias for getSCV()doubleskewness()Kotlin-style property alias for getSkewness()Kotlin-style property alias for getSubgenerator()doublevar()Kotlin-style property alias for getVar()Methods inherited from class jline.lang.processes.Markovian
acf, D, embedded, embeddedProb, evalCDF, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getMoments, getMu, getPhi, getVariance, idc, idi, moments, mu, phi, setMean, setProcess, setRate, varianceMethods inherited from class jline.lang.processes.Distribution
evalProbInterval, getName, getNumParams, getParam, getSupport, isContinuous, isDisabled, isDiscrete, isImmediate, isMarkovian, name, numParams, param, setNumParams, setParam, support
-
Constructor Details
-
PH
-
-
Method Details
-
evalCDF
public double evalCDF(double t) Evaluates the cumulative distribution function (CDF) at time t. For a PH distribution, CDF(t) = 1 - alpha * exp(T*t) * e where alpha is the initial probability vector, T is the subgenerator, and e is a vector of ones. -
evalLST
public double evalLST(double s) Description copied from class:DistributionEvaluate the Laplace-Stieltjes Transform at s -
getInitProb
Description copied from class:MarkovianGets the initial probability vector.- Overrides:
getInitProbin classMarkovian- Returns:
- the initial probabilities
-
getMean
public double getMean()Description copied from class:MarkovianGets the mean of this Markovian distribution. -
getNumberOfPhases
public long getNumberOfPhases()Description copied from class:MarkovianGets the number of phases in this Markovian distribution.- Overrides:
getNumberOfPhasesin classMarkovian- Returns:
- the number of phases
-
getProcess
Description copied from class:MarkovianGets the matrix representation of this Markovian process.- Overrides:
getProcessin classMarkovian- Returns:
- MatrixCell containing D0, D1, ... matrices
-
getRate
public double getRate()Description copied from class:DistributionGets the rate of this distribution (inverse of mean). -
getSCV
public double getSCV()Description copied from class:DistributionGets the squared coefficient of variation (SCV) of this distribution. SCV = Var(X) / E[X]^2. -
getSkewness
public double getSkewness()Description copied from class:DistributionGets the skewness of this distribution. Skewness measures the asymmetry of the probability distribution.- Overrides:
getSkewnessin classMarkovian- Returns:
- the skewness value
-
getSubgenerator
- Overrides:
getSubgeneratorin classMarkovian
-
getVar
public double getVar()Description copied from class:DistributionGets the variance of this distribution. Computed as SCV * mean^2. -
sample
public double[] sample(int n) Description copied from class:DistributionGenerates random samples from this distribution using default random generator. -
sample
Description copied from class:DistributionGenerates random samples from this distribution using the specified random generator. -
mean
public double mean()Kotlin-style property alias for getMean() -
rate
public double rate()Kotlin-style property alias for getRate() -
scv
public double scv()Kotlin-style property alias for getSCV() -
skewness
public double skewness()Kotlin-style property alias for getSkewness() -
var
public double var()Kotlin-style property alias for getVar() -
initProb
Kotlin-style property alias for getInitProb() -
numberOfPhases
public long numberOfPhases()Kotlin-style property alias for getNumberOfPhases()- Overrides:
numberOfPhasesin classMarkovian
-
numPhases
public long numPhases()Kotlin-style property alias for getNumberOfPhases() -
process
Kotlin-style property alias for getProcess() -
subgenerator
Kotlin-style property alias for getSubgenerator()- Overrides:
subgeneratorin classMarkovian
-