9 May 2025 9:16:49.615 PM kmeans_test(): FORTRAN90 version Test kmeans(). TEST01 Test the HMEANS_01 algorithm. Data points will be read from "points_100.txt". Point spatial dimension = 2 Number of points = 100 Number of iterations allowed is 20 Number of iterations taken is 7 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.58197 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 26 26 0.660561 18 0.254062E-01 2 21 21 0.801586 22 0.381708E-01 3 14 14 0.442640 12 0.316171E-01 4 20 20 0.702867 19 0.351434E-01 5 19 19 0.974316 27 0.512798E-01 Total 100 100 3.58197 100 0.358197E-01 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 = 2 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 3.51316 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 29 29 0.836853 23 0.288570E-01 2 21 21 0.930440 26 0.443067E-01 3 15 15 0.510219 14 0.340146E-01 4 21 21 0.753846 21 0.358974E-01 5 14 14 0.481801 13 0.344144E-01 Total 100 100 3.51316 100 0.351316E-01 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 = 2 Number of points = 100 Number of iterations allowed is 20 Number of KMEANS_01 iterations taken is 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.39739 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.392927 11 0.231134E-01 2 23 23 0.933857 27 0.406025E-01 3 13 13 0.460678 13 0.354368E-01 4 23 23 0.578082 17 0.251340E-01 5 24 24 1.03185 30 0.429936E-01 Total 100 100 3.39739 100 0.339739E-01 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 = 2 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 3.47469 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.244244E-01 2 29 29 0.905224 26 0.312146E-01 3 22 22 1.02164 29 0.464381E-01 4 15 15 0.526286 15 0.350857E-01 5 20 20 0.679602 19 0.339801E-01 Total 100 100 3.47469 100 0.347469E-01 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 = 2 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 3.47816 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.244244E-01 2 27 27 0.738345 21 0.273461E-01 3 22 22 1.02164 29 0.464381E-01 4 17 17 0.696631 20 0.409783E-01 5 20 20 0.679602 19 0.339801E-01 Total 100 100 3.47816 100 0.347816E-01 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 = 2 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 3.76120 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 11 11 0.192028 5 0.174571E-01 2 16 16 0.709421 18 0.443388E-01 3 14 14 0.387348 10 0.276677E-01 4 28 28 0.804475 21 0.287313E-01 5 31 31 1.66792 44 0.538040E-01 Total 100 100 3.76120 100 0.376120E-01 Number of KMEANS_01 iterations taken is 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.39739 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.392927 11 0.231134E-01 2 13 13 0.460678 13 0.354368E-01 3 23 23 0.933857 27 0.406025E-01 4 23 23 0.578082 17 0.251340E-01 5 24 24 1.03185 30 0.429936E-01 Total 100 100 3.39739 100 0.339739E-01 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 = 2 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 3.60829 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 11 11 0.192028 5 0.174571E-01 2 18 18 0.832332 23 0.462407E-01 3 29 29 1.39312 38 0.480386E-01 4 18 18 0.661732 18 0.367629E-01 5 24 24 0.529077 14 0.220449E-01 Total 100 100 3.60829 100 0.360829E-01 Number of KMEANS_02 iterations taken is 2 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.39739 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.392927 11 0.231134E-01 2 13 13 0.460678 13 0.354368E-01 3 24 24 1.03185 30 0.429936E-01 4 23 23 0.933857 27 0.406025E-01 5 23 23 0.578082 17 0.251340E-01 Total 100 100 3.39739 100 0.339739E-01 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 = 2 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 3.78905 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 9 9 0.201551 5 0.223945E-01 2 15 15 0.524885 13 0.349924E-01 3 31 31 1.05989 27 0.341899E-01 4 29 29 1.49957 39 0.517094E-01 5 16 16 0.503155 13 0.314472E-01 Total 100 100 3.78905 100 0.378905E-01 Number of KMEANS_03 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.43394 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.389573 11 0.278266E-01 2 17 17 0.630405 18 0.370826E-01 3 30 30 0.986954 28 0.328985E-01 4 16 16 0.493149 14 0.308218E-01 5 23 23 0.933857 27 0.406025E-01 Total 100 100 3.43394 100 0.343394E-01 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 = 2 Number of points = 100 Weights will be read from "weights_equal_100.txt". Number of iterations allowed is 20 1 16.175353873427714 2 4.5717491593478083 3 4.4362068043376253 4 4.2420811216960095 5 3.8245201707573320 6 3.7506092309288959 7 3.6206835357666702 8 3.5731601144249105 9 3.5350931719718455 10 3.5278233497058866 11 3.5213212330789734 Number of iterations taken is 12 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.51609 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 30 30 0.986954 28 0.328985E-01 2 20 20 0.927215 26 0.463608E-01 3 20 20 0.871133 24 0.435566E-01 4 16 16 0.343441 9 0.214651E-01 5 14 14 0.387348 11 0.276677E-01 Total 100 100 3.51609 100 0.351609E-01 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 = 2 Number of points = 100 Weights will be read from "weights_equal_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 3.55501 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 20 20 1.00177 28 0.500883E-01 2 24 24 0.862343 24 0.359309E-01 3 29 29 0.861478 24 0.297061E-01 4 16 16 0.623346 17 0.389591E-01 5 11 11 0.206082 5 0.187347E-01 Total 100 100 3.55501 100 0.355501E-01 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 = 2 Number of points = 100 Weights will be read from "weights_equal_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 3.44335 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 31 31 1.03323 30 0.333300E-01 2 16 16 0.644884 18 0.403053E-01 3 14 14 0.341942 9 0.244244E-01 4 15 15 0.391450 11 0.260966E-01 5 24 24 1.03185 29 0.429936E-01 Total 100 100 3.44335 100 0.344335E-01 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 = 2 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 3.47816 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.341942 9 0.244244E-01 2 27 27 0.738345 21 0.273461E-01 3 22 22 1.02164 29 0.464381E-01 4 17 17 0.696631 20 0.409783E-01 5 20 20 0.679602 19 0.339801E-01 Total 100 100 3.47816 100 0.347816E-01 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 = 2 Number of points = 100 Weights will be read from "weights_unequal_100.txt". Number of iterations allowed is 20 1 39.927307869144379 2 5.9332593236147257 3 5.3702338442913886 Number of iterations taken is 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 5.35151 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.524659 9 0.293480E-01 2 17 17 0.529900 9 0.311706E-01 3 32 32 1.70769 31 0.391546E-01 4 23 23 2.26261 42 0.877527E-01 5 14 14 0.326644 6 0.226603E-01 Total 100 100 5.35151 100 0.452927E-01 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 = 2 Number of points = 100 Weights will be read from "weights_unequal_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 6.48741 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 26 26 2.30620 35 0.803173E-01 2 14 14 0.524659 8 0.293480E-01 3 5 5 0.708808E-01 1 0.141762E-01 4 17 17 0.515678 7 0.239901E-01 5 38 38 3.06999 47 0.672068E-01 Total 100 100 6.48741 100 0.553169E-01 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 = 2 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 4.82588 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 21 21 1.61923 33 0.682799E-01 2 30 30 1.37091 28 0.307024E-01 3 16 16 0.644884 13 0.403053E-01 4 14 14 0.524659 10 0.293480E-01 5 19 19 0.666206 13 0.341865E-01 Total 100 100 4.82588 100 0.406025E-01 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 = 2 Number of points = 100 Weights will be read from "weights_unequal_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 4.82588 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 14 14 0.524659 10 0.293480E-01 2 30 30 1.37091 28 0.307024E-01 3 21 21 1.61923 33 0.682799E-01 4 16 16 0.644884 13 0.403053E-01 5 19 19 0.666206 13 0.341865E-01 Total 100 100 4.82588 100 0.406025E-01 Cluster centers written to "test16_centers.txt". Cluster assignments written to "test16_clusters.txt". kmeans_test(): Normal end of execution. 9 May 2025 9:16:49.621 PM