Learn R Programming

UAHDataScienceUC (version 1.0.1)

gka_centers: Centroid computation

Description

Centroid computation

Usage

gka_centers(data, k, population)

Value

a 3D array of size p by k by m.

Arguments

data

a set of observations, presented as a matrix-like object where every row is a new observation. The matrix is of size n by m.

k

the number of clusters.

population

a matrix of size p by n with the cluster assignments for each observation.

Author

Eduardo Ruiz Sabajanes, eduardo.ruizs@edu.uah.es