get_centroid_dists {tidyclust} | R Documentation |
Computes distance from observations to centroids
Description
Computes distance from observations to centroids
Usage
get_centroid_dists(
new_data,
centroids,
dist_fun = function(x, y) {
philentropy::dist_many_many(x, y, method =
"euclidean")
}
)
Arguments
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
|
[Package tidyclust version 0.2.4 Index]