Package jline.api.mam

Class Aph2_fitKt

  • All Implemented Interfaces:

    
    public final class Aph2_fitKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 distribution
        M2 - the second moment of the distribution
        M3 - 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