LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
matlab
lib
m3a
m3a
aph2
aph2_fit_trace.m
1
function 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
9
M1 = mean(T);
10
M2 = mean(T.^2);
11
M3 = mean(T.^3);
12
13
APH = aph2_fit(M1, M2, M3);
14
15
end
Generated by
1.9.8