clustering a data set

I have a 2-dimensional dataset with several points (say 100), each having x and y coordinate. I need to cluster these points around some predefined points (say 5) according to the nearest neighbour (Euclidean distance). But, each predefined point has a limit to the number of points associated with it. for ex. predefined point 1 should have a cluster of 20 points from the dataset, the second should have 10, third should have 30 and so on. Is there any function that I can use to do this? In normal clustering, I cannot define the size of an individual cluster. Thank you in advance.

回答 (1 件)

KSSV
KSSV 2017 年 11 月 21 日

0 投票

Read about knnsearch.

カテゴリ

ヘルプ センター および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

質問済み:

2017 年 11 月 21 日

回答済み:

2017 年 11 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by