Returns the Euclidean distance between
y which can be vectors
or matrices or data frames of any dimension (
y should be of same dimension).
This function is equivalent to
Dist function in the
pcds package but is
different from the
dist function in the
stats package of the standard R
dist requires its argument to be a data matrix and
dist computes and returns the distance matrix computed
by using the specified distance measure to compute the distances between the rows of a data matrix
euc.dist needs two arguments to find the distances between.
For two data matrices
euc.dist(A,B) yield the same result.
Vectors, matrices or data frames (both should be of the same type).
Euclidean distance between
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.