centering {dcov} | R Documentation |
Centering method This method implements the double centering and U-centering during computing distance covariance.
Description
Centering method This method implements the double centering and U-centering during computing distance covariance.
Usage
centering(D, type = c("V", "U"))
centering_from_data(x, type = c("V", "U"))
Arguments
D |
the pairwise distance matrix |
type |
"V" or "U". "V" for double centering. "U" for U-centering. |
x |
the matrix of x |
Examples
x = matrix(rnorm(200),100,2)
D = as.matrix(dist(x))
A = centering(D,'U')
A = centering_from_data(x)
[Package dcov version 0.1.1 Index]