Clustering Function Based on K Nearest Neighbors

版本 1.0.0 (2.4 KB) 作者: Warren Koontz
Finds clusters in set of observations based on their numerical attributes. Uses a variation of an graph theoretic algorithm,
266.0 次下载
更新时间 2018/9/11

查看许可证

This function is similar to the graph theoretic clustering function that I submitted previously (https://www.mathworks.com/matlabcentral/fileexchange/57320-clustering-algorithm-based-on-directed-graphs). The input is an observation/attribute matrix and an integer K that specifies the number of nearest neighbors for each observation. The algorithm first finds the K nearest neighbors of each observation and then a parent for each observation. The parent is the observation among the K+1 whose Kth nearest neighbor is the nearest (check the code for a more precise specification). As in the previous function, orphans become the roots of clusters and the remaining nodes are assigned recursively to the cluster of their parent.

引用格式

Warren Koontz (2025). Clustering Function Based on K Nearest Neighbors (https://ww2.mathworks.cn/matlabcentral/fileexchange/68778-clustering-function-based-on-k-nearest-neighbors), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0