Learn R Programming

UAHDataScienceUC (version 1.0.1)

gka_twcv: Total Within Cluster Variation (TWCV) computation

Description

Total Within Cluster Variation (TWCV) computation

Usage

gka_twcv(data, k, population, centers)

Value

a vector of size p with the total within cluster variation of each individual in the 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.

centers

a 3D array of size p by k by m with the cluster centers for each individual in the population.

Author

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