powered by
Centering method This method implements the double centering and U-centering during computing distance covariance.
centering(D, type = c("V", "U"))centering_from_data(x, type = c("V", "U"))
centering_from_data(x, type = c("V", "U"))
the pairwise distance matrix
"V" or "U". "V" for double centering. "U" for U-centering.
the matrix of x
# NOT RUN { x = matrix(rnorm(200),100,2) D = as.matrix(dist(x)) A = centering(D,'U') A = centering_from_data(x) # }
Run the code above in your browser using DataLab