euclid {statisfactory} | R Documentation |
Euclidean distance
Description
Euclidian distance in one or more dimensions.
Usage
euclid(a, b, na.rm = FALSE)
Arguments
a |
Numeric vector. |
b |
Numeric vector of same length as |
na.rm |
Logical. If |
Value
Numeric.
Examples
euclid(0, 5)
euclid(c(0, 0), c(1, 1))
euclid(c(0, 0, 0), c(1, 1, 1))
[Package statisfactory version 1.0.4 Index]