LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
aph2_fit_map.m
1function APH = aph2_fit_map(map)
2% Performs approximate fitting of a MAP, yielding a second-order
3% APH in canonical form.
4% Input
5% - map: the MAP of arbitrary order to fit
6% Output
7% - APH: fitted second-order phase-type
8
9M1 = map_mean(map);
10M2 = map_moment(map,2);
11M3 = map_moment(map,3);
12
13APH = aph2_fit(M1, M2, M3);
14
15end