eD: Euclidean Distance

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate the euclidean distance for multiple vectors

Usage

1
eD(x, y)

Arguments

x

matrix with first set of vectors.

y

matrix with second set of vectors.

Details

x and y need the following structure to compare multiple vectors at once:

rows contain the k vectors

columns the n coordinates in the n-space

str(x) == matrix [1:k, 1:n]

Value

vector with the euclidean distance for each pair

Author(s)

Dominik Reusser

Examples

1
eD(1:3, 2:4)

tiger documentation built on May 2, 2019, 2:22 a.m.