Class Aph_fitKt
-
- All Implemented Interfaces:
public final class Aph_fitKt
-
-
Method Summary
Modifier and Type Method Description final static MatrixCellaph_fit(Double e1, Double e2, Double e3, Integer nmax)Fits an acyclic phase-type (APH) distribution to the given moments of a random variable. final static MatrixCellaph_fit(Double e1, Double e2, Double e3)Fits an acyclic phase-type (APH) distribution to the given moments of a random variable. -
-
Method Detail
-
aph_fit
final static MatrixCell aph_fit(Double e1, Double e2, Double e3, Integer nmax)
Fits an acyclic phase-type (APH) distribution to the given moments of a random variable.
This method approximates a random variable with an APH distribution, characterized by the first three moments: the mean (e1), the second moment (e2), and the third moment (e3). The APH distribution is represented as a MAP with two matrices: D0 and D1. If the second or third moment is infinite, the method defaults to fitting an exponential MAP.
The method iteratively tries to find an appropriate order
nfor the APH distribution up to a maximum ordernmax. The order determines the number of phases in the distribution. If the moments cannot be matched exactly within the givennmax, an approximate solution is returned.- Parameters:
e1- the first moment (mean) of the distributione2- the second moment of the distributione3- the third moment of the distributionnmax- the maximum number of phases to consider in the APH distribution- Returns:
a MatrixCell containing the transition matrices
D0andD1of the fitted APH distribution
-
aph_fit
final static MatrixCell aph_fit(Double e1, Double e2, Double e3)
Fits an acyclic phase-type (APH) distribution to the given moments of a random variable.
This method approximates a random variable with an APH distribution, characterized by the first three moments: the mean (e1), the second moment (e2), and the third moment (e3). The APH distribution is represented as a MAP with two matrices: D0 and D1. If the second or third moment is infinite, the method defaults to fitting an exponential MAP.
This version of the method uses a default maximum order of 10 for the APH distribution.
- Parameters:
e1- the first moment (mean) of the distributione2- the second moment of the distributione3- the third moment of the distribution- Returns:
a MatrixCell containing the transition matrices
D0andD1of the fitted APH distribution
-
-
-
-