pairwise_distance_correlation | R Documentation |
Fast computation of pairwise distance correlations.
pairwise_distance_correlation(x, y)
x |
A matrix. The number of rows should match the length of the vector y |
y |
A vector |
Note: To get the same result as from the energy package you need to take the square root of the results here.
A vector with the same length as the number of columns in x. Each element contains the pairwise distance correlation to y.
Claus Ekstrom <claus@rprimer.dk>
y <- rnorm(100)
x <- matrix(rnorm(100 * 10), ncol = 10)
pairwise_distance_correlation(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.