rdist: Euclidean distance matrix between two matrices

Description Usage Arguments Value

View source: R/math__rdist.R

Description

Calculate the distance between all rows of X and Y.

Usage

1
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.


feng-li/flutils documentation built on Oct. 1, 2020, 9:09 p.m.