Description Usage Arguments Value See Also Examples
This function computes the distance between each vector of the 'points' argument using the metric specified by 'method'.
1 |
points |
a matrix of floating point numbers in which each row is a vector in $R^n$ space where $n$ is ncol(points). |
method |
a string representing the name of the metric to use to calculate the distance between the vectors of 'points'. Currently supported values are: "binary", "canberra", "euclidean", "manhattan", "maximum", and "minkowski". |
p |
a floating point parameter for the Minkowski metric. |
a class of type "dist" containing floating point numbers representing the distances between vectors from the 'points' argument.
dist
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.