euc_dist: Computing Euclidean Distance between Two Vectors (Matrices)

Description Usage Arguments Details Value Author(s)

View source: R/util.R

Description

Compute the L2 distance between two vectors or matrices.

Usage

1
euc_dist(x1, x2 = NULL)

Arguments

x1

(vector/matrix) The first vector/matrix.

x2

(vector/matrix, the same dimension as x1) The second vector/matrix.

Details

This function gives the Euclidean distance between two vectors or matrices.

Value

dist

(numeric) Euclidean distance.

Author(s)

Wenying Deng


CVEK documentation built on Jan. 8, 2021, 5:42 p.m.