08 March 2018 08:39:48 AM KMEANS_TEST C version Test the KMEANS library. TEST01 Test the HMEANS_01 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.319168 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 30 30 0.162634 50 0.00542113 1 22 22 0.0436184 13 0.00198265 2 19 19 0.056322 17 0.00296432 3 11 11 0.0277903 8 0.00252639 4 18 18 0.0288032 9 0.00160018 Total 100 100 0.319168 100 0.00319168 Cluster centers written to "test01_centers.txt" Cluster assignments written to "test01_clusters.txt" TEST02 Test the HMEANS_02 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.337789 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 11 11 0.0386982 11 0.00351802 1 21 21 0.0539374 15 0.00256845 2 23 23 0.0503279 14 0.00218817 3 20 20 0.0925404 27 0.00462702 4 25 25 0.102285 30 0.00409142 Total 100 100 0.337789 100 0.00337789 Cluster centers written to "test02_centers.txt" Cluster assignments written to "test02_clusters.txt" TEST03 Test the KMEANS_01 algorithm. (Applied Statistics Algorithm #58) Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of iterations allowed is 20 Number of KMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.317064 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 29 29 0.142678 44 0.00491993 1 19 19 0.0345746 10 0.00181972 2 20 20 0.0747661 23 0.0037383 3 11 11 0.0277903 8 0.00252639 4 21 21 0.0372545 11 0.00177402 Total 100 100 0.317064 100 0.00317064 Cluster centers written to "test03_centers.txt" Cluster assignments written to "test03_clusters.txt" TEST04 Test the KMEANS_02 algorithm. (Applied Statistics Algorithm #136) Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.323179 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 9 9 0.017043 5 0.00189367 1 21 21 0.0539374 16 0.00256845 2 18 18 0.0591926 18 0.00328848 3 23 23 0.0503279 15 0.00218817 4 29 29 0.142678 44 0.00491993 Total 100 100 0.323179 100 0.00323179 Cluster centers written to "test04_centers.txt" Cluster assignments written to "test04_clusters.txt" TEST05 Test the KMEANS_03 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.323179 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 9 9 0.017043 5 0.00189367 1 21 21 0.0539374 16 0.00256845 2 18 18 0.0591926 18 0.00328848 3 23 23 0.0503279 15 0.00218817 4 29 29 0.142678 44 0.00491993 Total 100 100 0.323179 100 0.00323179 Cluster centers written to "test05_centers.txt" Cluster assignments written to "test05_clusters.txt" TEST06 Test the HMEANS_01 + KMEANS_01 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of HMEANS_01 iterations allowed is 3 Number of KMEANS_01 iterations allowed is 20 Number of HMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.328956 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 30 30 0.162634 49 0.00542113 1 23 23 0.0503279 15 0.00218817 2 19 19 0.056322 17 0.00296432 3 7 7 0.00573503 1 0.00081929 4 21 21 0.0539374 16 0.00256845 Total 100 100 0.328956 100 0.00328956 Number of KMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.317064 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 29 29 0.142678 44 0.00491993 1 21 21 0.0372545 11 0.00177402 2 20 20 0.0747661 23 0.0037383 3 11 11 0.0277903 8 0.00252639 4 19 19 0.0345746 10 0.00181972 Total 100 100 0.317064 100 0.00317064 Cluster centers written to "test06_centers.txt" Cluster assignments written to "test06_clusters.txt" TEST07 Test the HMEANS_01 + KMEANS_02 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Number of HMEANS_01 iterations allowed is 3 Number of KMEANS_02 iterations allowed is 20 Number of HMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.328956 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 30 30 0.162634 49 0.00542113 1 23 23 0.0503279 15 0.00218817 2 19 19 0.056322 17 0.00296432 3 7 7 0.00573503 1 0.00081929 4 21 21 0.0539374 16 0.00256845 Total 100 100 0.328956 100 0.00328956 Number of KMEANS_02 iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.317064 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 29 29 0.142678 44 0.00491993 1 21 21 0.0372545 11 0.00177402 2 20 20 0.0747661 23 0.0037383 3 11 11 0.0277903 8 0.00252639 4 19 19 0.0345746 10 0.00181972 Total 100 100 0.317064 100 0.00317064 Cluster centers written to "test07_centers.txt" Cluster assignments written to "test07_clusters.txt" TEST08 Test the HMEANS_01 + KMEANS_03 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Initialize by using a few steps of HMEANS_02: Number of HMEANS_01 iterations allowed is 3 Number of KMEANS_03 iterations allowed is 20 Number of HMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.328956 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 30 30 0.162634 49 0.00542113 1 23 23 0.0503279 15 0.00218817 2 19 19 0.056322 17 0.00296432 3 7 7 0.00573503 1 0.00081929 4 21 21 0.0539374 16 0.00256845 Total 100 100 0.328956 100 0.00328956 Number of KMEANS_03 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.317064 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 29 29 0.142678 44 0.00491993 1 21 21 0.0372545 11 0.00177402 2 20 20 0.0747661 23 0.0037383 3 11 11 0.0277903 8 0.00252639 4 19 19 0.0345746 10 0.00181972 Total 100 100 0.317064 100 0.00317064 Cluster centers written to "test08_centers.txt" Cluster assignments written to "test08_clusters.txt" TEST09 Test the HMEANS_W_01 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_equal_100.txt" Number of iterations allowed is 20 1 30.7139 2 30.7139 3 30.7139 4 30.7139 5 30.7139 6 30.7139 7 30.7139 8 30.7139 Number of iterations taken is 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.319168 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 263 263 0.162634 50 0.00542113 1 213 213 0.0436184 13 0.00198265 2 -1647608 -1647608 0.056322 17 0.00296432 3 32762 32762 0.0277903 8 0.00252639 4 162 162 0.0288032 9 0.00160018 Total -1614208 100 0.319168 100 0.00297307 Cluster centers written to "test09_centers.txt" Cluster assignments written to "test09_clusters.txt" TEST10 Test the HMEANS_W_02 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_equal_100.txt" Number of iterations allowed is 20 Number of iterations taken is 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.337789 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 11 11 0.0386982 11 0.00351802 1 21 21 0.0539374 15 0.00256845 2 23 23 0.0503279 14 0.00218817 3 20 20 0.0925404 27 0.00462702 4 25 25 0.102285 30 0.00409142 Total 100 100 0.337789 100 0.00337789 Cluster centers written to "test10_centers.txt" Cluster assignments written to "test10_clusters.txt" TEST11 Test the KMEANS_W_01 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_equal_100.txt" Number of iterations allowed is 20 Number of iterations taken is 20 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 1.42484 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 41 41 0.805578 56 0.0196482 1 44 44 0.598958 42 0.0136127 2 7 7 0.011938 0 0.00170542 3 4 4 0.00554076 0 0.00138519 4 4 4 0.00282369 0 0.000705923 Total 100 100 1.42484 100 0.0142484 Cluster centers written to "test11_centers.txt" Cluster assignments written to "test11_clusters.txt" TEST12 Test the KMEANS_W_03 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_equal_100.txt" Number of iterations allowed is 20 Number of iterations taken is 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.323179 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 9 9 0.017043 5 0.00189367 1 21 21 0.0539374 16 0.00256845 2 18 18 0.0591926 18 0.00328848 3 23 23 0.0503279 15 0.00218817 4 29 29 0.142678 44 0.00491993 Total 100 100 0.323179 100 0.00323179 Cluster centers written to "test12_centers.txt" Cluster assignments written to "test12_clusters.txt" TEST13 Test the HMEANS_W_01 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_unequal_100.txt" Number of iterations allowed is 20 1 86.3031 2 86.3031 3 86.3031 4 86.3031 5 86.3031 6 86.3031 Number of iterations taken is 7 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.468589 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 209 209 0.175969 37 0.00552371 1 154 154 0.0486905 10 0.0014029 2 -1647651 -1647651 0.176781 37 0.0038058 3 32750 32750 0.0256594 5 0.00233268 4 130 130 0.0414886 8 0.00204983 Total -1614408 100 0.468589 100 0.00383583 Cluster centers written to "test13_centers.txt" Cluster assignments written to "test13_clusters.txt" TEST14 Test the HMEANS_W_02 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_unequal_100.txt" Number of iterations allowed is 20 Number of iterations taken is 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.468585 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 20 20 0.176781 37 0.0038058 1 22 22 0.0526082 11 0.00238888 2 17 17 0.0375676 8 0.000943962 3 11 11 0.0256594 5 0.00233268 4 30 30 0.175969 37 0.00552371 Total 100 100 0.468585 100 0.00336089 Cluster centers written to "test14_centers.txt" Cluster assignments written to "test14_clusters.txt" TEST15 Test the KMEANS_W_01 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_unequal_100.txt" Number of iterations allowed is 20 Number of iterations taken is 20 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 1.88116 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 42 42 0.976595 51 0.0210436 1 38 38 0.811916 43 0.0178436 2 6 6 0.0456361 2 0.00558921 3 4 4 0.0308155 1 0.00693072 4 10 10 0.0161954 0 0.00149494 Total 100 100 1.88116 100 0.0163809 Cluster centers written to "test15_centers.txt" Cluster assignments written to "test15_clusters.txt" TEST16 Test the KMEANS_W_03 algorithm. Data points will be read from "points_100.txt" Point spatial dimension = 1 Number of points = 100 Weights will be read from "weights_unequal_100.txt" Number of iterations allowed is 20 Number of iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 0.4501 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # value 0 20 20 0.138174 30 0.00612234 1 25 25 0.109393 24 0.00412667 2 10 10 0.0388159 8 0.00341867 3 19 19 0.0486905 10 0.0014029 4 26 26 0.115026 25 0.00427763 Total 100 100 0.4501 100 0.00397673 Cluster centers written to "test16_centers.txt" Cluster assignments written to "test16_clusters.txt" KMEANS_TEST Normal end of execution. 08 March 2018 08:39:48 AM