Skip to main content
. Author manuscript; available in PMC: 2019 Apr 1.
Published in final edited form as: IEEE Trans Med Imaging. 2017 Dec 13;37(4):860–870. doi: 10.1109/TMI.2017.2783244

Algorithm 1.

Algorithm for projected distance correlation with OGA

Require: Observed random sample vectors xnRn×p, ynRn×q, znRn×r.
1: for i = 1 to p do
2:  Initialize r0=xni, T0 = ϕ.
3: for k = 1 to (1+logq)nlogq do
4:   Update the active set by Tk=Tk1zntk, where tk=argmaxj{1,,q}|<rk1,znj>|.
5:   Update the estimate by fk=PTkxni, where PTk is the orthogonal projection onto Tk.
6:   Update the residue rk=xnifk.
7:   Record HDICk=nlog(rk22n)+2klogr.
8: end for
9:  Find k* = argminkHDICk.
10:  Select εxi=rk.
11: end for
12 Calculate squared sample projected distance correlation Rn2(εx,εy) and the corresponding p-value.