Prepares data and distance matrices for metric calculationSource:
Prepares data and distance matrices for metric calculation
prep_data_dist(object, new_data = NULL, dists = NULL, dist_fun = Rfast::Dist)
A fitted cluster_spec object.
A dataset to calculate predictions on. If
NULL, the trained cluster assignments from the fitted object are used.
A distance matrix for the data. If
NULL, distance is computed on
A custom distance functions.