LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
aph2_fit_trace.m
1function APH = aph2_fit_trace(T)
2% Performs approximate fitting of a given trace, yielding a second-order
3% APH in canonical form.
4% Input
5% - T: the inter-arrival times
6% Output
7% - APH: fitted second-order phase-type
8
9M1 = mean(T);
10M2 = mean(T.^2);
11M3 = mean(T.^3);
12
13APH = aph2_fit(M1, M2, M3);
14
15end