07-Jan-2022 22:37:35 kmeans_fast_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test kmeans_fast(). kmeans_fast_test01(): kmeans_fast() applies kmeans to 100 points in the unit square. Spatial dimension = 2 Number of points = 100 Desired number of clusters = 5 Step Time Changed Total KMEANS_FAST MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Solve the KMEANS problem for clustering data. 1 0.130995 101 20 2 0.150791 27 160 3 0.160019 4 87 4 0.173794 0 63 4 0.176128 0.172594 0.0349782 651 KMEANS_FAST Normal end of execution. The cluster centers: Col: 1 2 Row 1 : 0.50691 0.448423 2 : 0.84426 0.242907 3 : 0.221214 0.216742 4 : 0.747695 0.749533 5 : 0.153086 0.731384 J Cluster(J) Dist(J) X(J) Y(J) 1 4 0.259606 0.532095 0.894141 2 5 0.123317 0.189043 0.613426 3 1 0.054873 0.550977 0.415724 4 5 0.194977 0.003973 0.605760 5 4 0.168271 0.894230 0.666812 6 5 0.080549 0.073072 0.740658 7 4 0.206799 0.640180 0.926186 8 1 0.157021 0.389914 0.553149 9 3 0.179879 0.046918 0.172275 10 4 0.185395 0.820327 0.578957 11 5 0.134169 0.166575 0.597895 12 4 0.176333 0.587999 0.824301 13 3 0.160152 0.184717 0.060804 14 5 0.131921 0.264707 0.661072 15 4 0.197667 0.564959 0.824897 16 4 0.257431 0.986991 0.654621 17 5 0.134237 0.214221 0.611877 18 4 0.256081 0.997171 0.807318 19 3 0.164519 0.233578 0.380796 20 5 0.156817 0.209772 0.585171 21 1 0.128296 0.631619 0.418295 22 1 0.070315 0.441601 0.474479 23 3 0.032140 0.246242 0.196578 24 3 0.212987 0.243191 0.428592 25 3 0.260547 0.129101 0.460463 26 2 0.035896 0.808454 0.240363 27 3 0.146674 0.235910 0.362678 28 2 0.224701 0.841259 0.018226 29 4 0.141357 0.825533 0.867529 30 2 0.074843 0.780973 0.282859 31 3 0.307772 0.492706 0.071775 32 3 0.248534 0.064106 0.024164 33 4 0.132769 0.711451 0.621806 34 4 0.248108 0.532239 0.872561 35 5 0.243033 0.264527 0.947361 36 2 0.191617 0.984485 0.373498 37 2 0.159772 0.890788 0.090060 38 4 0.069056 0.814890 0.765458 39 1 0.162942 0.656357 0.383494 40 5 0.147872 0.161836 0.878997 41 2 0.136329 0.789622 0.367808 42 5 0.152423 0.005299 0.694075 43 2 0.210293 0.751558 0.054149 44 5 0.305028 0.315169 0.989785 45 5 0.123452 0.067572 0.642346 46 3 0.115947 0.144209 0.130059 47 4 0.026693 0.755242 0.723929 48 3 0.214817 0.025839 0.306045 49 5 0.235657 0.009056 0.544864 50 3 0.226303 0.091736 0.031139 51 5 0.155733 0.000120 0.760615 52 1 0.101028 0.599014 0.406906 53 3 0.249664 0.020924 0.067692 54 5 0.250156 0.402961 0.743223 55 4 0.212407 0.536965 0.776167 56 2 0.193202 0.791622 0.428800 57 5 0.212456 0.049268 0.546021 58 5 0.226499 0.321031 0.883358 59 3 0.291543 0.459940 0.049388 60 5 0.243249 0.306635 0.920045 61 1 0.219062 0.290264 0.480864 62 5 0.042084 0.117081 0.709596 63 4 0.114737 0.663268 0.827229 64 5 0.205539 0.257030 0.908703 65 5 0.023896 0.138396 0.712536 66 1 0.186202 0.373250 0.578061 67 4 0.157572 0.792062 0.598336 68 4 0.071086 0.761925 0.679885 69 3 0.307794 0.498106 0.082325 70 5 0.165081 0.079199 0.879007 71 3 0.177143 0.389481 0.161374 72 2 0.113898 0.909555 0.336230 73 4 0.225239 0.787710 0.527877 74 2 0.049708 0.873910 0.282804 75 4 0.237851 0.914291 0.579771 76 5 0.099256 0.126212 0.635836 77 2 0.206766 0.962689 0.412397 78 2 0.185982 0.662097 0.205412 79 1 0.096579 0.514842 0.352170 80 1 0.140199 0.573771 0.571652 81 1 0.149948 0.541641 0.302552 82 2 0.207878 0.880047 0.447681 83 2 0.213269 0.854456 0.455932 84 2 0.239689 0.882323 0.006259 85 5 0.110430 0.083516 0.817145 86 4 0.237957 0.868329 0.544420 87 5 0.145355 0.211671 0.598359 88 3 0.231257 0.169315 0.442100 89 5 0.043021 0.116072 0.753312 90 2 0.201665 0.900911 0.049362 91 4 0.262731 0.889781 0.970528 92 5 0.076434 0.209244 0.783234 93 5 0.260810 0.055621 0.973298 94 2 0.174749 0.787673 0.077573 95 3 0.117834 0.327654 0.267293 96 4 0.272079 0.571657 0.956988 97 1 0.013600 0.519674 0.443726 98 5 0.290753 0.020604 0.472568 99 3 0.288626 0.006350 0.409455 100 3 0.193485 0.414254 0.229849 Mean value of distance^2 = 0.0349782 Mean value of distance = 0.172594 Graphics saved as "test01.png" kmeans_fast_test(): Normal end of execution. 07-Jan-2022 22:37:39