1function [
MMAP,PHs] = mmap_mixture_fit_mmap(mmap)
2% Fits a
MMAP with m classes
using a mixture of m^2 PH-distributions.
3% Each PH distribution represents
the probability distribution conditioned
4% on
the fact that
the last arrival was of
class i and
the next arrival
is
11% - PHs:
the fitted PH-distributions
for each transition
13% compute two-step transition probabilities
14P2 = mmap_sigma2(mmap);
16% compute cross moments of order 1, 2 and 3
17M1 = mmap_cross_moment(mmap,1);
18M2 = mmap_cross_moment(mmap,2);
19M3 = mmap_cross_moment(mmap,3);
21% apply fitting algorithm
22[
MMAP,PHs] = mmap_mixture_fit(P2, M1, M2, M3);