Description Usage Arguments Value
internal function, computes the Euclidean (euclid=T
) or Manhattan distances (euclid=F
) between vector y
and the rows of matrix xs
.
1 | mvdistance(xs, y, euclid = F)
|
xs |
matrix, each row representing a vector |
y |
vector |
euclid |
|
vector of the distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.