(m)=(∑_(i=0)^(N-1))sign(\[LeftBracketingBar]x(i+1)\[RightBracketingBar]-\[LeftBracketingBar]x(i)\[RightBracketingBar])sign(\[LeftBracketingBar]y(i+m+1)\[RightBracketingBar]-\[LeftBracketingBar]y(i+m)\[RightBracketingBar])