get_centroid_dists: Computes distance from observations to centroids

View source: R/metric-helpers.R

get_centroid_distsR Documentation

Computes distance from observations to centroids

Description

Computes distance from observations to centroids

Usage

get_centroid_dists(new_data, centroids, dist_fun = Rfast::dista)

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 Rfast::dista()


tidyclust documentation built on July 3, 2024, 1:06 a.m.