View source: R/metric-helpers.R
get_centroid_dists | R Documentation |
Computes distance from observations to centroids
get_centroid_dists(new_data, centroids, dist_fun = Rfast::dista)
new_data |
A data frame |
centroids |
A data frame where each row is a centroid. |
dist_fun |
A function for computing matrix-to-matrix distances. Defaults
to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.