General Component for Cluster Representative update.
wc_recalculate(data, assignment, recalculate_type, assignment_type = NULL,
old_centroids = NULL)
A dataset for which Cluster Representatives needs to be updated.
Vector of Cluster assignments.
String which signal which update type to be used. Check wc_recalculate_types
for possible values.
Assignment type (Optional).
Old centroids (Optional).
As a result new Cluster Representatives are obtained. Result is in for of data.frame or data.matrix.