Skip to contents

Computes the pairwise Euclidean distances for a matrix `X`.

Usage

# S3 method for euclidean
pairwise_dist(obj, X)

Arguments

X

Numeric matrix where rows represent observations and columns represent variables.

dist_obj

A list containing possibly additional parameters, currently unused.

Value

An object of class `dist` containing the computed Euclidean distances.

Examples

X <- matrix(rnorm(100), 10, 10)
dist_matrix <- pairwise_dist.euclidean(list(), X)
#> Error in pairwise_dist.euclidean(list(), X): could not find function "pairwise_dist.euclidean"