Input: Start index s, End index e, Atypia-Amplitude Signature amp_list,
Output: Max VD Index max_vd_idx
Method:
(1) max_vd_idx 0
(2) max_vd
(3) if (es) > 1 then
(4)  for  i s + 1 to  e     do
(5)   vdVD (s, i, e, amp_list)
(6)   if vd > max_vd then
(7)    max_vd_idx
(8)    max_vd vd
(9)   end if
(10)  end for
(11) end if
(12) return  max_vd_idx
Algorithm 4: Max_ VD _Idx  (s , e , amp_list).