Skip to main content
. Author manuscript; available in PMC: 2021 Sep 20.
Published in final edited form as: IEEE Trans Neural Syst Rehabil Eng. 2021 Aug 30;29:1679–1689. doi: 10.1109/TNSRE.2021.3105644
Algorithm 2 Adaptive GP Random Sampling Algorithm
Input:X0,y0,n0,nA,p^n0(x)Output:X,y1X=X0;2for=n0,Ndo3Samplexfromp^(x);Get MEPyat locix;MakeX=[XT,xT]Tandy=[yT,y]T;Updatep^(x)using the pair{X,y};7end8returnX,y;