Object M3aCompressor.Companion
-
- All Implemented Interfaces:
public class M3aCompressor.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static M3aCompressor.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final MatrixCellcompressHyperExponential(MatrixCell MMAP, Integer order)Compresses an MMAP using the M3A hyper-exponential approximation method. final MatrixCellcompressErlang(MatrixCell MMAP, Integer maxOrder)Compresses an MMAP using the M3A Erlang approximation method. final MatrixCellcompressCoxian(MatrixCell MMAP, Integer order)Compresses an MMAP using the M3A Coxian approximation method. final MatrixCellcompressPhaseType(MatrixCell MMAP, Integer numPhases)Compresses an MMAP using the M3A phase-type approximation method. final MatrixCellcompressMinimal(MatrixCell MMAP, Double tolerance)Compresses an MMAP using the M3A minimal representation method. -
-
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 compressorder- 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 compressmaxOrder- 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 compressorder- 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 compressnumPhases- 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 compresstolerance- the tolerance for moment matching- Returns:
compressed MMAP using minimal representation
-
-
-
-