Package jline.api.mam
Class Mmap_mixture_order2Kt
-
- All Implemented Interfaces:
public final class Mmap_mixture_order2Kt
-
-
Method Summary
Modifier and Type Method Description final static MatrixCell
mmap_mixture_order2(List<MatrixCell> mmaps, DoubleArray weights)
Creates a second-order MMAP mixture from a collection of MMAPs. final static Pair<MatrixCell, DoubleArray>
mmap_mixture_order2_optimal(List<MatrixCell> mmaps, DoubleArray targetCharacteristics)
Creates a second-order MMAP mixture with automatic weight selection. -
-
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 mixweights
- 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 mixtargetCharacteristics
- Target moments to match (M1, M2, M3)- Returns:
Pair of (optimized mixture, optimal weights)
-
-
-
-