pairwise_distance_correlation: Compute pairwise distance correlation metrics of each column...

View source: R/RcppExports.R

pairwise_distance_correlationR Documentation

Compute pairwise distance correlation metrics of each column to a vector

Description

Fast computation of pairwise distance correlations.

Usage

pairwise_distance_correlation(x, y)

Arguments

x

A matrix. The number of rows should match the length of the vector y

y

A vector

Details

Note: To get the same result as from the energy package you need to take the square root of the results here.

Value

A vector with the same length as the number of columns in x. Each element contains the pairwise distance correlation to y.

Author(s)

Claus Ekstrom <claus@rprimer.dk>

Examples

y <- rnorm(100)
x <- matrix(rnorm(100 * 10), ncol = 10)
pairwise_distance_correlation(x, y)


MESS documentation built on Sept. 13, 2025, 9:09 a.m.