Package jline.api.mam
Class Aph2_fitKt
-
- All Implemented Interfaces:
public final class Aph2_fitKt
-
-
Method Summary
Modifier and Type Method Description final static Ret.mamAPH2Fit
aph2_fit(Double M1, Double M2, Double M3)
Fits an acyclic phase-type (APH) distribution with two phases (APH(2)) to match the given moments of a random variable. -
-
Method Detail
-
aph2_fit
final static Ret.mamAPH2Fit aph2_fit(Double M1, Double M2, Double M3)
Fits an acyclic phase-type (APH) distribution with two phases (APH(2)) to match the given moments of a random variable.
This method attempts to fit an APH(2) distribution based on the first three moments (M1, M2, M3) of the distribution. If a valid APH(2) distribution cannot be directly obtained, the method adjusts the moments and retries the fitting process. If the fitting still fails, it throws an exception indicating that feasibility could not be restored.
- Parameters:
M1
- the first moment (mean) of the distributionM2
- the second moment of the distributionM3
- the third moment of the distribution- Returns:
an object of type
aph2_fit_return_type
containing the fitted APH(2) distribution and all possible fits
-
-
-
-