Inertia: Measure of inertia

Description Usage Arguments Value Examples

Description

Calculates the within, between and total inertia of a data matrix

Usage

1
Inertia(x, y, print = FALSE)

Arguments

x

A numeric matrix.

y

A numeric vector of data clusters.

print

If TRUE, prints the inertia values

Value

A list with the following elements:

Between_within

A matrix with the following elements: Name.group = Group membership, InertiaT = Total inertia, InertiaB = Between inertia, InertiaW = Within inertia.

Per_group

A matrix with the following elements: Inertia_group = Inertia per group, Inertia_group100 = Inertia per group (percentage of ITOT pergroup), Inertia_moy_group = Mean Inertia per group.

Examples

1
2
data('HumanSerum')
Res = Inertia(x = HumanSerumSpectra, y = ClassHS, print = TRUE)

ManonMartin/MBXUCL documentation built on Nov. 26, 2021, 8:45 p.m.