utils.kmedoids

Documentation

Computes the k-medoids

based on Park & Jun (2008): http://www.sciencedirect.com/science/article/pii/S095741740800081X

Functions

calc_distance(distance, centers, labels)

Calculate the distance between the cluster centra and the labels.

init_center(distance)

Initalize medoid centers with the points with the lowest total distance.

init_random(distance)

Random initialization of the medoid centers.

kmedoids(distance[, nclus, init, max_loops])

Runs the k-medoids clustering algorithm.

update_centers(distance, labels)

Updates the cluster centers.

update_labels(distance, centers)

Update the point labels.