pairwise.dist: Compute Euclidean Distances

Description Usage Arguments Value See Also Examples

View source: R/distances.R

Description

Computes the pairwise distance matrix between two sets of points

Usage

1
pairwise.dist(a, b, squared = TRUE)

Arguments

a, b

matrices (NxD) and (MxD), respectively, where each row represents a D-dimensional point.

squared

return containing squared Euclidean distance

Value

Euclidean distance matrix (NxM). An attribute "squared" set to the value of param squared is provided.

See Also

res.dist(), dist2closest(), ball()

Examples

1
pairwise.dist(matrix(1:9, ncol = 3), matrix(9:1, ncol = 3))

jcaledo/ptm_0.1.1 documentation built on April 4, 2020, 3:48 a.m.