This is an internal CPP function, used by the R function
An integer vector containing exactly 0,1,...,n-1 in any order.
The validity of the input is not checked by this function.
Given (X1,Y1),...,(Xn,Yn), Hoeffding's Dn only depends on the permutation P that satisfies rank Yi = P[rank Xi]. This function computes Dn given P in O(n log n) time.
Hoeffding's D statistic of
The normalization is such that -1/60 <= D <= 1/30.
The return value -1.0 indicates an error.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.