Algorithm 2 Detection of regimes in round-trip time sequences |
function DetectRegimes(X,,s) |
is the scenario, the distribution, the min. regime length |
|
|
▹ list of regimes detected |
|
▹ last model (regime) found |
|
▹ start index of the last model within X
|
for do
|
if then
|
|
▹ MLE + GoF of segment with distrib.
|
if then
|
▹ failed model with the new RTT
|
if then
|
▹ last model ended here |
|
▹ new regime is built with last valid model |
|
▹ no last model |
|
▹ has not been used for building last regime |
else
|
▹ no previous model; slide the window forward |
|
end if
|
else
|
▹ model assessed ok; go on extending it |
|
end if
|
end if
|
end for
|
if then
|
▹ trailing model |
|
end if
|
|
return R
|
|
end function |