Learn R Programming

miclust (version 1.2.8)

centroid: Computes centroid.

Description

centroid computes the centroid for each cluster (mean o median).

Usage

centroid(data, cluster, centpos)

Arguments

data

internally provided by doclusterkmeans function.

cluster

internally provided by doclusterkmeans function.

centpos

internally provided by doclusterkmeans function.

Value

internal value to be used by doclusterkmeans function.