Learn R Programming

whiboclustering (version 0.1.2)

wc_recalc_trimmed_mean: Solution for Cluster Representative update which uses Trimmed mean.

Description

Solution for Cluster Representative update which uses Trimmed mean.

Usage

wc_recalc_trimmed_mean(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.