fastDist: Fast vectorised Euclidean distance calculator

Description Usage Arguments Details Value Author(s) Examples

View source: R/dist.r

Description

Fast vectorised Euclidean distance calculator

Usage

1
fastDist(x, squared = FALSE)

Arguments

x

Matrix with vectors in columns.

squared

Will not perform the square root, i.e. will return the squared ‘L2-norm’.

Details

Calculates Euclidean distances between vectors arranged as columns in a matrix.

Value

Returns a matrix of pairwise distances

Author(s)

Wajid Jawaid

Examples

1
2
3
4
## Not run: 
dist <- fastDist(x)

## End(Not run)

wjawaid/roots documentation built on Sept. 12, 2017, 9:51 a.m.