Algorithm 2: GTAD Detection Algorithm |
Input: Dataset X = {x1, …, xN}, parameter θ |
Output: Labels y: {yM+1, …, yN} |
for t = L to M do |
_← GTAD (xt-L:t-1) |
_← GTAD (xt-L+1:t) |
end for |
Threshold λ = threshold function (e1, …, eM) |
for t = M + 1 to N do |
, _← GTAD (xt-L:t-1) |
_← GTAD (xt-L+1:t) |
If et > λ then |
yt = 1 |
else |
yt = 0 |
end if |
end for |