Skip to main content
. Author manuscript; available in PMC: 2020 Oct 20.
Published in final edited form as: Appl Comput Harmon Anal. 2020;49(3):https://doi.org/10.1016/j.acha.2020.06.002.
Algorithm 3.1. Input:x1<<xn[a,b],α1,,αnR.Output:u~1+,,u~n+.
1:j0=0andg1==gm=02:3:mainloop:4:forj=1,,n5:6:updateg1,,gmandj0:7:whilexjxj0+1>δ(ba)8:fori=1,,m9:gi=gie(xj0+1xj0)ti+αi10:endfor11:j0=j0+112:endwhile13:14:computepotentialfromxisuchthatxixj0:15:u~j+=016:fori=1,,m17:u~j+=u~j+wigie(xjxj0)ti18:endfor19:20:computepotentialformxisuchthatxj0+1xixj121:fori=j0+1,,j122:u~j+=u~j++αi(xixj).23:endfor24:endfor