ClusterNormalize function

Cluster Normalize

Cluster Normalize

Values in Cls are consistently recoded to positive consecutive integers

ClusterNormalize(Cls)

Arguments

  • Cls: [1:n numerical vector of numbers defining the classification as the main output of the clustering algorithm for the n cases of data. It has k unique numbers representing the arbitrary labels of the clustering.

Details

For recoding depending on cluster size please see ClusterRenameDescendingSize.

Returns

The renamed classification. A vector of clusters recoded to positive consecutive integers.

Author(s)

.

See Also

ClusterRenameDescendingSize

Examples

data('Lsun3D') Cls=Lsun3D$Cls #not desceending cluster numbers Cls[Cls==1]=543 Cls[Cls==4]=1 # Now ordered consecutively ClusterNormalize(Cls)
  • Maintainer: Michael Thrun
  • License: GPL-3
  • Last published: 2023-10-19