Return a distance function with respect to a collection of medoids and a metric
Return a distance function with respect to a collection of medoids and a metric
A collection of elements representing clustering medoids
The distance metric over the element space
A function that maps an element to its distance to the closest medoid
Return a predictor function with respect to a collection of medoids and a metric
Return a predictor function with respect to a collection of medoids and a metric
A collection of elements representing clustering medoids
The distance metric over the element space
A function that maps an element to the index of the nearest medoid
Return a function that yields index of closest medoid, paired with distance to that medoid
Return a function that yields index of closest medoid, paired with distance to that medoid
A collection of elements representing clustering medoids
The distance metric over the element space
A function that maps an element to (index, distance)
Utility functions for KMedoidsModel