Package jline.lib.m3a

Object M3aCompressor.Companion

    • Constructor Detail

    • Method Detail

      • compressHyperExponential

         final MatrixCell compressHyperExponential(MatrixCell MMAP, Integer order)

        Compresses an MMAP using the M3A hyper-exponential approximation method.

        This method approximates the MMAP using a mixture of hyperexponential distributions while preserving the first three moments of the inter-arrival times.

        Parameters:
        MMAP - the original MMAP to compress
        order - the order of the hyper-exponential approximation (default: 2)
        Returns:

        compressed MMAP using hyper-exponential approximation

      • compressErlang

         final MatrixCell compressErlang(MatrixCell MMAP, Integer maxOrder)

        Compresses an MMAP using the M3A Erlang approximation method.

        This method uses a mixture of Erlang distributions to approximate the MMAP, which is particularly effective for MMAPs with low variability.

        Parameters:
        MMAP - the original MMAP to compress
        maxOrder - the maximum order of Erlang distributions to use
        Returns:

        compressed MMAP using Erlang approximation

      • compressCoxian

         final MatrixCell compressCoxian(MatrixCell MMAP, Integer order)

        Compresses an MMAP using the M3A Coxian approximation method.

        This method uses Coxian distributions to approximate the MMAP, providing a good balance between accuracy and computational efficiency.

        Parameters:
        MMAP - the original MMAP to compress
        order - the order of the Coxian approximation
        Returns:

        compressed MMAP using Coxian approximation

      • compressPhaseType

         final MatrixCell compressPhaseType(MatrixCell MMAP, Integer numPhases)

        Compresses an MMAP using the M3A phase-type approximation method.

        This method uses a general phase-type distribution to approximate the MMAP, providing high accuracy for complex arrival patterns.

        Parameters:
        MMAP - the original MMAP to compress
        numPhases - the number of phases in the approximation
        Returns:

        compressed MMAP using phase-type approximation

      • compressMinimal

         final MatrixCell compressMinimal(MatrixCell MMAP, Double tolerance)

        Compresses an MMAP using the M3A minimal representation method.

        This method finds the minimal representation that preserves the essential statistical properties of the MMAP while minimizing the state space.

        Parameters:
        MMAP - the original MMAP to compress
        tolerance - the tolerance for moment matching
        Returns:

        compressed MMAP using minimal representation