gka_centers {UAHDataScienceUC}R Documentation

Centroid computation

Description

Centroid computation

Usage

gka_centers(data, k, population)

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.

Value

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

Author(s)

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


[Package UAHDataScienceUC version 1.0.1 Index]