Learn R Programming

whiboclustering (version 0.1.2)

wc_recalc_midrange: Solution for Cluster Representative update which uses Midrange.

Description

Solution for Cluster Representative update which uses Midrange.

Usage

wc_recalc_midrange(data, assignment, old_centroids = NULL)

Arguments

data

A dataset for which Cluster Representatives needs to be updated.

assignment

Vector of Cluster assignments.

old_centroids

Old centroids.

Value

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