rdist: Euclidean distance matrix between two matrices

View source: R/rdist.R

rdistR Documentation

Euclidean distance matrix between two matrices

Description

Calculate the distance between all rows of X and Y.

Usage

rdist(X, Y, log = TRUE)

Arguments

X

an 'm-by-p' numeric matrix.

Y

an 'n-by-p' numeric matrix.

log

logical; If TRUE, the log distance matrix is returned.

Value

an 'm-by-n' numeric matrix.


thiyangt/fformpp documentation built on Jan. 5, 2024, 5:44 a.m.