Learn R Programming

TExPosition (version 2.9.0)

fastEucCalc: fastEucCalc

Description

Fast Euclidean distance calculations.

Usage

fastEucCalc(x, c)

Value

a distance matrix

Euclidean distances of each point to each center are returned.

Arguments

x

a set of points.

c

a set of centers.

Author

Hervé Abdi, Derek Beaton

Details

This function is especially useful for discriminant analyses. The distance from each point in x to each point in c is computed and returned as a nrow(x) x nrow(c) matrix.