Skip to main content
. Author manuscript; available in PMC: 2019 Oct 12.
Published in final edited form as: ACM Trans Knowl Discov Data. 2013 Sep;7(3):10.

Table VI.

UCR Suite: Uniform Scaling Search

Algorithm  UCR Suite: UniformScaling
Procedure  [nn] = UniformScalingSearch(T,Q,scaling_factor)
1 best-so-far ← ∞
2 max_lenlength(Q)
3 while !next(T)
4   Ccurrent candidate from T of length n
5   max_lenmax_len*(1-scaling_factor)
6   [U, L] ← CreateEnvelope(Q, min_len, max_len)
7   lbLB_Keogh(U,L,C)
8   if lb < best-so-far
9    for lenmin_len to max_len
10     QsScalingSubsequence(Q,len)
11     distUCR_ED(Qs,C)
12     if dist < best-so-far
13      best-so-fardist
14      nn.sequenceC
15      nn.best_lenlen
16     end if
17    end for
18   end if
19 end while