eD {tiger}R Documentation

Euclidean Distance

Description

Calculate the euclidean distance for multiple vectors

Usage

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

eD(1:3, 2:4)


[Package tiger version 0.2 Index]