Description Usage Arguments Value Examples
get_distance
1 | get_distance(point1, point2, metric = "euclidean")
|
point1 |
vector with numeric values |
point2 |
vector with numeric values |
metric |
default "euclidean", "cosine" will return cosine similiarity distance, and "manhattan" will return manhattan distance |
float, the distance between point1 and point2 based on the metric given
1 | get_distance(c(0,0,0), c(1,0,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.