Description Usage Arguments Details Value Examples
Calculates the distance between two points. If instead given two matrices A and B of size n x d, for n number of items of d dimensions each, it will return an n - 1 length vector with the distances between each of the items (i.e. the distance between the item A[1,] and B[1,]; between A[2,] and B[2,], and so on).
1 | euc_d(x, y)
|
x, y |
Vector or Matrix. If vector of length d, a d-dimensional point. If matrix of size n x d, n points of d dimensions. |
It assumes that all dimensions have the same units or that all dimensions are normalized (mean = 0 and std = 1). Adapted from here
Numeric or Vector. Distance between points. If vector, distances between the ith points in the matrices.
1 2 3 4 5 6 7 8 9 10 11 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.