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) "Cox2" at two phases, "Coxian" otherwise.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()Property alias for getMeanmu()Property alias for getMulongProperty alias for getNumberOfPhaseslongProperty alias for getNumberOfPhasesphi()Property alias for getPhidoublerate()Property alias for getRatedouble[]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()Property alias for getSCVdoubleskewness()Property alias for getSkewnessdoublevar()Property alias for getVarMethods inherited from class jline.lang.processes.Markovian
acf, D, embedded, embeddedProb, evalCDF, evalLST, evalMeanT, evalVarT, getACF, 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, getNumParams, getParam, getParam, getParams, getSupport, hasParam, 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
-
getFeatureName
"Cox2" at two phases, "Coxian" otherwise. The registry carries both names, and the Cox2 entry can only mean the two-phase Coxian: MATLAB has no Cox2 OBJECT to mark, since Cox2 there is a static factory returning a Coxian, and the C++ port already gives every two-phase Coxian ProcessType::COX2. Reading the entry off the phase count is therefore the one reading all four codebases can share, and the only one under which the name is reachable at all. TheFeatureSetgeneralization table keeps a solver that declares just "Coxian" accepting.- Overrides:
getFeatureNamein classDistribution- Returns:
- the FeatureSet entry naming this distribution
-
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()Property alias for getMean -
rate
public double rate()Property alias for getRate -
scv
public double scv()Property alias for getSCV -
skewness
public double skewness()Property alias for getSkewness -
var
public double var()Property alias for getVar -
mu
Property alias for getMu -
phi
Property alias for getPhi -
numberOfPhases
public long numberOfPhases()Property alias for getNumberOfPhases- Overrides:
numberOfPhasesin classMarkovian
-
numPhases
public long numPhases()Property alias for getNumberOfPhases
-