View source: R/mdessence-functions.R
get_distances | R Documentation |
Get distances between a set of old points and a set of new points
get_distances(old_points, new_points, dist_fn)
old_points |
n_old x n_variables matrix with rows containing the old points. |
new_points |
n_new x n_variables matrix with rows containing the new point. |
dist_fn |
A function taking as input a matrix, returning the distances between the rows of the matrix. |
A matrix with n_old rows and n_new columns containing the distance between each pair of old and new points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.