Package jline.api.mam

Class Mmap_mixture_order2

java.lang.Object
jline.api.mam.Mmap_mixture_order2

public final class Mmap_mixture_order2 extends Object
  • Method Details

    • mmap_mixture_order2

      public static MatrixCell mmap_mixture_order2(List<MatrixCell> mmaps, double[] weights)
      Creates a second-order MMAP mixture from a collection of MMAPs. This function reduces higher-order MMAPs to order 2 and creates a mixture.
      Parameters:
      mmaps - List of MMAPs to mix
      weights - Mixing weights (must sum to 1)
      Returns:
      Second-order MMAP mixture
    • mmap_mixture_order2_optimal

      public static Pair<MatrixCell,double[]> mmap_mixture_order2_optimal(List<MatrixCell> mmaps, double[] targetCharacteristics)
      Creates a second-order MMAP mixture with automatic weight selection. Weights are chosen to minimize the approximation error.
      Parameters:
      mmaps - List of MMAPs to mix
      targetCharacteristics - Target moments to match (M1, M2, M3)
      Returns:
      Pair of (optimized mixture, optimal weights)