image thumbnail


バージョン (3.43 KB) 作成者: Brett Shoelson
Clusters an MxN array of data into an unspecified number (P) of bins.

ダウンロード 3K 件

更新 2016/9/1


No a priori knowledge of the number of bins, or the distance between bins, is required. This approach relies on the relative difference between (sorted) elements of the data, and works well when the difference between clusters is bigger than the difference between elements within a cluster.

CLUSTERS = clusterData(DATA);
Operates column-by-column. An optional input allows you to specify the sensitivity of each columnwise clustering. Additional outputs also specify the indices of the cluster each row of data, and the bounds used to separate them.

Each column may have a different interpretation. For instance, an Mx4 array of data may represent x-data in the first column, y- in the second, z- in the third, and t- in the fourth. Returns a Px1 cell array, CLUSTERS, specifying the data points in each of the P clusters detected.

The final clustering utilizes all columns.

NOTE: This submission incorporates, expands, and replaces my earlier submission ezCluster.


Brett Shoelson (2022). clusterData (, MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2011b
Windows macOS Linux

ヒントを与えたファイル: Data clustering using Bat Algorithm

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!