fastDist {roots}R Documentation

Fast vectorised Euclidean distance calculator

Description

Fast vectorised Euclidean distance calculator

Usage

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

## Not run: 
dist <- fastDist(x)

## End(Not run)

[Package roots version 1.0 Index]