Learn R Programming

whiboclustering (version 0.1.2)

wc_recalculate: General Component for Cluster Representative update.

Description

General Component for Cluster Representative update.

Usage

wc_recalculate(data, assignment, recalculate_type, assignment_type = NULL,
  old_centroids = NULL)

Arguments

data

A dataset for which Cluster Representatives needs to be updated.

assignment

Vector of Cluster assignments.

recalculate_type

String which signal which update type to be used. Check wc_recalculate_types for possible values.

assignment_type

Assignment type (Optional).

old_centroids

Old centroids (Optional).

Value

As a result new Cluster Representatives are obtained. Result is in for of data.frame or data.matrix.