Description Usage Arguments Value Examples
Manhattan distance normalised by the length of the vectors. This is the sum
of the absolute difference between two vectors divided by the length of the
vectors. i.e a <- c(1,2,3); b <- c(3,2,1) ; manhattan(a, b)/3
1 | manhattan_norm(x, y)
|
x |
numeric vector |
y |
numeric vector |
numeric distance metric
1 2 3 4 | a <- c(1,2,3,4,2,13,2)
b <- c(1,2,4,5,3,23,0)
manhattan_norm(a, b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.