欢迎来到天天文库
浏览记录
ID:8195809
大小:42.00 KB
页数:12页
时间:2018-03-09
《基于MATLAB的KMEANS 聚类程序》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、基于MATLAB的KMEANS聚类程序程序和数据如下:CODE:%K-means算法主程序k=4;x=[1.2126 2.1338 0.5115 0.2044 -0.9316 0.7634 0.0125 -0.2752 -2.9593 0.1813 -0.8833 0.8505 3.1104 -2.5393 -0.0588 0.1808 -3.1141 -0.1244 -0.6811 0.9891 -3.2008 0.0024 -1.2901 0.9748 -1.0
2、777 1.1438 0.1996 0.0139 -2.7213 -0.1909 0.1184 0.1013 -1.1467 1.3820 0.1427 -0.2239 1.1497 1.9414 -0.3035 0.3464 2.6993 -2.2556 0.1637 -0.0139 -3.0311 0.1417 0.0888 0.1791 -2.8403 -0.1809 -0.0965 0.0817 1.0118 2.0372 0.1638 -0.
3、0349 -0.8968 1.0260 -0.1013 0.2369 1.1112 1.8802 -0.0291 -0.1506 1.1907 2.2041 -0.1060 0.2167 -1.0114 0.8029 -0.1317 0.0153 -3.1715 0.1041 -0.3338 0.0321 0.9718 1.9634 0.0305 -0.3259 -1.0377 0.8889 -0.2834 0.2301 -0.8989 1.0185
4、-0.0289 0.0213 -2.9815 -0.4798 0.2245 0.3085 -0.8576 0.9231 -0.2752 -0.0091 -3.1356 0.0026 -1.2138 0.7733 3.4470 -2.2418 0.2014 -0.1556 2.9143 -1.7951 0.1992 -0.2146 3.4961 -2.4969 -0.0121 0.1315 -2.9341 -0.1071 -0.7712 0.8911 -2
5、.8105 -0.0884 -0.0287 -0.1279 3.1006 -2.0677 -0.2002 -0.1303 0.8209 2.1724 0.1548 0.3516 -2.8500 0.3196 0.1359 -0.1179 -2.8679 0.1365 -0.5702 0.7626 -2.8245 -0.1312 0.0881 -0.1305 -0.8322 1.3014 -0.3837 0.2400 -2.6063 0.1431 0.18
6、80 0.0487 -3.1341 -0.0854 -0.0359 -0.2080 0.6893 2.0854 -0.3250 -0.1007 1.0894 1.7271 -0.0176 0.6553 -2.9851 -0.0113 0.0666 -0.0802 1.0371 2.2724 0.1044 0.3982 -2.8032 -0.2737 -0.7391 1.0277 -2.6856 0.0619 -1.1066 1.0485 -2.9445
7、 -0.1602 -0.0019 0.0093 1.2004 2.1302 -0.1650 0.3413 3.2505 -1.9279 0.4462 -0.2405 -1.2080 0.8222 0.1671 0.1576 -2.8274 0.1515 -0.9636 1.0675 2.8190 -1.8626 0.2702 0.0026 1.0507 1.7776 -0.1421 0.0999 -2.8946 0.1446 -0.1645 0.3071
8、 -1.0105 1.0973 0.0241 0.1628 -2.9138 -0.3404 0.0627 0.1286 -3.0646 -0.0008 0.3819 -0.1541 1.2531 1.9830 -0.0774 0.2413 1.1486 2.0440 -0.0582 -0.0650 -3.1401 -0.1447
此文档下载收益归作者所有