重心法や群平均法を用いたクラスタリング

以下のようなデータを重心法または群平均法でクラスタリングしたいのですがどうすればいいのでしょうか。
また、クラスタリングしたデータは後で1次元のグラフで出します。
pd = makedist('Normal');
valid_rows = 300;
r = random(pd,[valid_rows,1]
r = 300x1
-0.2018 -1.2097 -1.6922 -0.9883 -0.9255 -0.3958 0.0815 0.4605 1.4051 1.1273
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange

Question posée :

le 24 Avr 2024

Community Treasure Hunt

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

Start Hunting!