Description Usage Arguments Details Value
Euclidean distance of x
to a line of points xp
1 | distLine(x, xp)
|
x |
vector of dimension d |
xp |
n points x_i of dimension d are arranged in (n x d) matrix |
distLine
is up to 40x faster than using dist
and taking only the first row or
column of the distance matrix returned.
vector of length n, the Euclidean distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.