utils.kmedoids¶
Documentation
Computes the k-medoids
based on Park & Jun (2008): http://www.sciencedirect.com/science/article/pii/S095741740800081X
Functions
|
Calculate the distance between the cluster centra and the labels. |
|
Initalize medoid centers with the points with the lowest total distance. |
|
Random initialization of the medoid centers. |
|
Runs the k-medoids clustering algorithm. |
|
Updates the cluster centers. |
|
Update the point labels. |