Computes the RV coefficient, a measure of similarity between two matrices.

rvcoef(X, Y)

Arguments

X

First matrix

Y

Second matrix

Value

RV coefficient (a value between 0 and 1)

Examples

X <- matrix(rnorm(100), nrow = 10)
Y <- matrix(rnorm(120), nrow = 10)
rvcoef(X, Y)
#> [1] 0.1250135