Package jline.lang.processes
Class Coxian
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.ContinuousDistribution
jline.lang.processes.Markovian
jline.lang.processes.Coxian
- All Implemented Interfaces:
Serializable,Copyable
- Direct Known Subclasses:
Cox2
A general Coxian distribution with n phases.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevalCDF(double t) Evaluates the cumulative distribution function at the given point.doubleevalLST(double s) Evaluate the Laplace-Stieltjes Transform at sstatic CoxianfitCentral(double mean, double var, double skew) static CoxianfitMeanAndSCV(double mean, double SCV) static CoxianfitMeanAndSCV(double mean, double var, double skew) doublegetMean()Gets the mean of this Markovian distribution.getMu()Gets the diagonal rate matrix containing the negative diagonal elements of D0.longGets the number of phases in this Markovian distribution.getPhi()Gets the exit probability vector (phi).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.doublemean()Kotlin-style property alias for getMean()mu()Kotlin-style property alias for getMu()longKotlin-style property alias for getNumberOfPhases()longKotlin-style property alias for getNumberOfPhases()phi()Kotlin-style property alias for getPhi()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()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, getInitProb, getMoments, getProcess, getSubgenerator, getVariance, idc, idi, initProb, moments, process, setMean, setProcess, setRate, subgenerator, 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
-
Coxian
-
Coxian
-
-
Method Details
-
fitCentral
-
fitMeanAndSCV
-
fitMeanAndSCV
-
evalCDF
public double evalCDF(double t) Description copied from class:MarkovianEvaluates the cumulative distribution function at the given point. -
evalLST
public double evalLST(double s) Description copied from class:DistributionEvaluate the Laplace-Stieltjes Transform at s -
getMean
public double getMean()Description copied from class:MarkovianGets the mean of this Markovian distribution. -
getMu
Description copied from class:MarkovianGets the diagonal rate matrix containing the negative diagonal elements of D0. -
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
-
getPhi
Description copied from class:MarkovianGets the exit probability vector (phi). -
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
-
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() -
mu
Kotlin-style property alias for getMu() -
phi
Kotlin-style property alias for getPhi() -
numberOfPhases
public long numberOfPhases()Kotlin-style property alias for getNumberOfPhases()- Overrides:
numberOfPhasesin classMarkovian
-
numPhases
public long numPhases()Kotlin-style property alias for getNumberOfPhases()
-