Package jline.api.mam

Class Amap2_fit_gammaKt

    • Constructor Detail

    • Method Detail

      • amap2_fit_gamma

         final static Pair<MatrixCell, List<MatrixCell>> amap2_fit_gamma(Double M1, Double M2, Double M3, Double GAMMA)

        Finds an AMAP(2) fitting the given characteristics. This is a key component for MAMAP fitting algorithms.

        Parameters:
        M1 - First moment of inter-arrival times
        M2 - Second moment of inter-arrival times
        M3 - Third moment of inter-arrival times
        GAMMA - Auto-correlation decay rate of inter-arrival times
        Returns:

        Pair of (best AMAP, all feasible AMAPs)

      • amap2_fitall_gamma

         final static List<MatrixCell> amap2_fitall_gamma(Double M1, Double M2, Double M3, Double GAMMA)

        Finds all AMAP(2) solutions for given moments and correlation. This function implements the complete algebraic solution for AMAP(2) parameters based on the exact MATLAB implementation.

        Parameters:
        M1 - First moment
        M2 - Second moment
        M3 - Third moment
        GAMMA - Auto-correlation decay rate
        Returns:

        List of feasible AMAP(2) solutions

      • amap2_assemble

         final static MatrixCell amap2_assemble(Double l1, Double l2, Double p1, Double p2, Integer form)

        Returns an AMAP(2) with the given parameters. Implements the exact MATLAB amap2_assemble function.

        Parameters:
        l1 - Lambda 1 parameter
        l2 - Lambda 2 parameter
        p1 - Probability parameter 1
        p2 - Probability parameter 2
        form - Form type (1 for gamma 0, 2 for gamma < 0)
        Returns:

        AMAP(2) as MatrixCell

      • amap2_adjust_gamma

         final static Triple<Double, Double, Double> amap2_adjust_gamma(Double M1, Double M2, Double M3, Double GAMMA, DoubleArray weights, Integer method, Integer constraints)

        Computes a feasible set of characteristics for the AMAP(2) that is as close as possible to the desired set of characteristics. This implements the complete MATLAB algorithm.

        Parameters:
        M1 - First moment of the marginal distribution
        M2 - Second moment of the marginal distribution
        M3 - Third moment of the marginal distribution
        GAMMA - Auto-correlation decay rate
        weights - Optional weights for M2, M3, GAMMA (default: 10, 1, 10)
        method - Method for adjustment (1-4, default: 3)
        constraints - Constraint type (1: safe, 2: theoretical, default: 2)
        Returns:

        Triple of adjusted (M2, M3, GAMMA)