WLJS LogoWLJS Notebook

FindClusters

FindClusters[{e1, e2, ...}] partitions the elements into clusters of similar elements.

FindClusters[data, n] partitions data into n clusters.

Examples

Cluster numerical data:

FindClusters[{1, 2, 10, 11, 100, 101}]
(* {{1, 2}, {10, 11}, {100, 101}} *)

Specify number of clusters:

FindClusters[RandomReal[1, {20, 2}], 3]

Please visit the official Wolfram Language Reference for more details.

On this page