centering: Centering method This method implements the double centering...

Description Usage Arguments Examples

View source: R/centering.R View source: R/RcppExports.R

Description

Centering method This method implements the double centering and U-centering during computing distance covariance.

Usage

1
2
3
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

1
2
3
4
x = matrix(rnorm(200),100,2)
D = as.matrix(dist(x))
A = centering(D,'U')
A = centering_from_data(x)

dcov documentation built on July 1, 2020, 6:20 p.m.

Related to centering in dcov...