powered by
Calculate the scalar distance between elements of a matrix.
scalar.dist(x, ...)
a matrix object
A vector of numeric values.
Additional arguments, not used at this time.
Jake Bowers, http://www.jakebowers.org/, Cole Beck
Take the absolute difference between all elements in a vector, and return a matrix of the distances.
scalar.dist(1:10)
Run the code above in your browser using DataLab