Package jline.lib.m3a

Class M3aUtils

java.lang.Object
jline.lib.m3a.M3aUtils

public final class M3aUtils extends Object
Utility functions for M3A (Markovian Arrival Process with 3-moment Approximation) compression.
  • Method Details

    • computeAutocorrelation

      public static Double[] computeAutocorrelation(MatrixCell MMAP, int maxLag)
      Computes the autocorrelation function of an MMAP up to the specified lag.
    • computeIDC

      public static double computeIDC(MatrixCell MMAP, double timeWindow)
      Computes the index of dispersion for counts (IDC) of an MMAP.
    • computeCoeffVar

      public static double computeCoeffVar(MatrixCell MMAP)
      Computes the coefficient of variation of an MMAP.
    • computeMoments

      public static Double[] computeMoments(MatrixCell MMAP, int n)
      Computes the first n moments of an MMAP.
    • computeSpectralGap

      public static double computeSpectralGap(MatrixCell MMAP)
      Computes the spectral gap of an MMAP generator matrix.
    • optimizeParameters

      public static Double[] optimizeParameters(Double[] initialParams, M3aUtils.ObjectiveFunction objectiveFunction, M3aUtils.ConstraintFunction[] constraints)
    • optimizeParameters

      public static Double[] optimizeParameters(Double[] initialParams, M3aUtils.ObjectiveFunction objectiveFunction, M3aUtils.ConstraintFunction[] constraints, double tolerance)
      Optimizes MMAP parameters using COBYLA optimization.
    • computeKLDivergence

      public static double computeKLDivergence(MatrixCell MMAP1, MatrixCell MMAP2)
    • computeKLDivergence

      public static double computeKLDivergence(MatrixCell MMAP1, MatrixCell MMAP2, int numSamples)
    • computeKLDivergence

      public static double computeKLDivergence(MatrixCell MMAP1, MatrixCell MMAP2, int numSamples, int seed)
      Computes the Kullback-Leibler divergence between two MMAPs.
    • validateMMAP

      public static boolean validateMMAP(MatrixCell MMAP)
      Validates that a matrix represents a valid MMAP.