please see the literature below
http://projecteuclid.org/download/pdfview_1/euclid.aoas/1318514284
at the bottom of page 1759 and begining of page 1760
it has 'by the normalized ranks Fn1(X1), Fn2(X2) where Fn1, Fn2 are the empirical distribution functions of the sample.'