Package jline.lang.processes
Class APH
java.lang.Object
jline.lang.processes.Distribution
jline.lang.processes.ContinuousDistribution
jline.lang.processes.Markovian
jline.lang.processes.APH
- All Implemented Interfaces:
Serializable,Copyable
An acyclic phase type distribution
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluates the CDF at default time points and returns as a Matrix.evalCDFMatrix(double[] timePoints) Evaluates the CDF at specified time points and returns as a Matrix.doubleevalLST(double s) Evaluate the Laplace-Stieltjes Transform at sstatic APHfit(double mean, double scv, double skew) static APHfitCentral(double mean, double var, double skew) static APHfitMeanAndSCV(double mean, double scv) static APHfitRawMoments(double m1, double m2, double m3) Fits an APH distribution from the first three raw moments.Gets the initial probability vector.initProb()Kotlin-style property alias for getInitProb()Methods inherited from class jline.lang.processes.Markovian
acf, D, embedded, embeddedProb, evalCDF, evalCDF, evalMeanT, evalVarT, getACF, getEmbedded, getEmbeddedProb, getIDC, getIDI, getMean, getMoments, getMu, getNumberOfPhases, getPhi, getProcess, getRate, getSCV, getSkewness, getVar, getVariance, idc, idi, mean, moments, mu, numberOfPhases, numPhases, phi, process, rate, sample, sample, scv, setMean, setProcess, setRate, skewness, subgenerator, var, 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
-
APH
-
APH
-
-
Method Details
-
getSubgenerator
- Overrides:
getSubgeneratorin classMarkovian
-
fit
-
fitCentral
-
fitMeanAndSCV
-
fitRawMoments
Fits an APH distribution from the first three raw moments.- Parameters:
m1- First raw moment (mean)m2- Second raw momentm3- Third raw moment- Returns:
- APH distribution fitted to the given moments
-
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
-
initProb
Kotlin-style property alias for getInitProb() -
evalCDFMatrix
Evaluates the CDF at default time points and returns as a Matrix. Returns a matrix with [CDF_value, time] pairs (matching MATLAB format).- Returns:
- Matrix with numPoints rows and 2 columns [CDF, time]
-
evalCDFMatrix
Evaluates the CDF at specified time points and returns as a Matrix.- Parameters:
timePoints- Array of time points at which to evaluate the CDF- Returns:
- Matrix with timePoints.length rows and 2 columns [CDF, time]
-