v2026.9.6
All Bundles
Bundle Core machine learning types: the seedable Random generator, Matrix2D linear algebra and activations, matrix reference holders, the NeuralNetwork and CSV-backed MatrixReader. Compile with -lib ml.

KMeansGrouping

K-Means grouping result

Operations

Get #

Get a group by index

method : public : Get(i:Int) ~ KMeansGroup

Parameters

NameTypeDescription
iIntindex

Return

TypeDescription
KMeansGroupgroup

GetDunnIndex #

Calculates the Dunn index

method : public : GetDunnIndex() ~ Float

Return

TypeDescription
FloatDunn index, higher values indicate more distinct clusters; 0.0 when the index is undefined: no group has any spread (each is empty or one record), or fewer than two groups have records

GetGroup #

Get a group by name

method : public : GetGroup(name:String) ~ KMeansGroup

Parameters

NameTypeDescription
nameStringgroup name

Return

TypeDescription
KMeansGroupgroup

GetGroupNames #

Get an array of group names

method : public : GetGroupNames() ~ String[]

Return

TypeDescription
Stringarray of group names

Size #

Get the number of groups

method : public : Size() ~ Int

Return

TypeDescription
Intnumber of groups

ToString #

String representation of the object

method : public : ToString() ~ String

Return

TypeDescription
Stringgroups representation of the object