scalar.dist | R Documentation |
Calculate the scalar distance between elements of a matrix.
scalar.dist(x, ...)
x |
A vector of numeric values. |
... |
Additional arguments, not used at this time. |
Take the absolute difference between all elements in a vector, and return a matrix of the distances.
a matrix object
Jake Bowers, http://www.jakebowers.org/, Cole Beck
scalar.dist(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.