Description Usage Arguments Details Value
View source: R/fun_euclidean.R
Given two sets of coordinates, find euclidean distance between them in n-dimensional space.
1 | euclidean(pt1, pt2)
|
pt1, pt2 |
numeric vectors of length n; coordinates of points 1 and 2, respectively |
This is a simple vectorised calculation that returns the square root of the sum of squared differences between respective elements of x and y. It is used internally to calculate distances between points in a set and the set's centroid.
a single number
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.