Package jline.api.mam

Class Mmap_mixture_order2Kt

    • 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
    • Constructor Detail

    • Method Detail

      • mmap_mixture_order2

         final static MatrixCell mmap_mixture_order2(List<MatrixCell> mmaps, DoubleArray 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

         final static Pair<MatrixCell, DoubleArray> mmap_mixture_order2_optimal(List<MatrixCell> mmaps, DoubleArray 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)