eucDist {genMCMCDiag}R Documentation

Euclidean Distance

Description

Simple function to return the Euclidean distance between two objects. Acts elementwise.

Usage

eucDist(x, y)

Arguments

x

Numeric vector or matrix.

y

Numeric vector or matrix of same dimensions as x.

Value

Numeric, elementwise Euclidean distance between x and y.

Note

For speed, no error handling if x and y do not have the same dimensions, take care!

Examples

eucDist(c(0,0), c(1,1))

[Package genMCMCDiag version 0.2.2 Index]