euclidean.distance: Euclidean distance

Description Usage Arguments Value Author(s) Examples

View source: R/euclidean.distance.R

Description

Calculate the euclidean distance between two vectors. Note that both x and y need to be the same length.

Usage

1

Arguments

x

A vector of coordinates

y

A vector of coordinate

Value

The euclidean distance

Author(s)

Richard de Borja <richard.deborja@sickkids.ca>

Examples

1
2
3
x <- c(1,2,3);
y <- c(4,5,6);
euclidean.distance(x, y);

rdeborja/statistics.general documentation built on May 27, 2019, 3:06 a.m.