Kmedoids: Perform k-medoids clustering on a data matrix.
After initialization the k-medoids algorithm partitions data by testing which
data member of a cluster Ci may make a better candidate as medoid (centroid)
by reducing the sum of distance (usually taxi), then running a reclustering
step with updated medoids.
Description
Perform k-medoids clustering on a data matrix.
After initialization the k-medoids algorithm partitions data by testing which
data member of a cluster Ci may make a better candidate as medoid (centroid)
by reducing the sum of distance (usually taxi), then running a reclustering
step with updated medoids.
The maximum number of iteration of k-means to perform
nthread
The number of parallel threads to run
init
The type of initialization to use c("forgy")
tolerance
The convergence tolerance
dist.type
What dissimilarity metric to use
Value
A list containing the attributes of the output of kmedoids.
cluster: A vector of integers (from 1:k) indicating the cluster to
which each point is allocated.
centers: A matrix of cluster centres.
size: The number of points in each cluster.
iter: The number of (outer) iterations.