6 October 2025 6:21:04.895 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 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.53607 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 12 12 0.340700 9 0.283917E-01 2 28 28 0.837767 23 0.299202E-01 3 22 22 1.02164 28 0.464381E-01 4 18 18 0.464829 13 0.258238E-01 5 20 20 0.871133 24 0.435566E-01 Total 100 100 3.53607 100 0.353607E-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 10 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.44306 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 17 17 0.529900 15 0.311706E-01 2 15 15 0.524885 15 0.349924E-01 3 22 22 0.874656 25 0.397571E-01 4 28 28 0.835858 24 0.298521E-01 5 18 18 0.677759 19 0.376533E-01 Total 100 100 3.44306 100 0.344306E-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 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.51955 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 16 16 0.362672 10 0.226670E-01 2 30 30 0.986954 28 0.328985E-01 3 18 18 0.698860 19 0.388255E-01 4 14 14 0.360072 10 0.257194E-01 5 22 22 1.11099 31 0.504996E-01 Total 100 100 3.51955 100 0.351955E-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.98491 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 25 25 1.32750 33 0.531000E-01 2 19 19 0.525458 13 0.276557E-01 3 17 17 0.380237 9 0.223669E-01 4 10 10 0.179944 4 0.179944E-01 5 29 29 1.57177 39 0.541991E-01 Total 100 100 3.98491 100 0.398491E-01 Number of KMEANS_01 iterations taken is 3 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.51955 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 22 22 1.11099 31 0.504996E-01 2 16 16 0.362672 10 0.226670E-01 3 30 30 0.986954 28 0.328985E-01 4 14 14 0.360072 10 0.257194E-01 5 18 18 0.698860 19 0.388255E-01 Total 100 100 3.51955 100 0.351955E-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.67193 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 11 11 0.192028 5 0.174571E-01 2 15 15 0.430935 11 0.287290E-01 3 32 32 1.73712 47 0.542851E-01 4 16 16 0.644884 17 0.403053E-01 5 26 26 0.666958 18 0.256522E-01 Total 100 100 3.67193 100 0.367193E-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 23 23 0.933857 27 0.406025E-01 3 24 24 1.03185 30 0.429936E-01 4 13 13 0.460678 13 0.354368E-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.95156 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 16 16 0.783949 19 0.489968E-01 2 28 28 1.08040 27 0.385857E-01 3 15 15 0.431595 10 0.287730E-01 4 18 18 0.674262 17 0.374590E-01 5 23 23 0.981353 24 0.426675E-01 Total 100 100 3.95156 100 0.395156E-01 Number of KMEANS_03 iterations taken is 5 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.48582 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 15 15 0.593806 17 0.395871E-01 2 27 27 0.714659 20 0.264689E-01 3 20 20 0.702867 20 0.351434E-01 4 14 14 0.442640 12 0.316171E-01 5 24 24 1.03185 29 0.429936E-01 Total 100 100 3.48582 100 0.348582E-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 15.672592244011659 2 4.8891156316369822 3 4.4209746385098319 4 4.1037207802728579 5 3.6611749323213623 6 3.5507941526491460 7 3.5070541842767899 8 3.4810596998831591 Number of iterations taken is 9 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.46124 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 15 15 0.510219 14 0.340146E-01 2 29 29 0.836853 24 0.288570E-01 3 16 16 0.644884 18 0.403053E-01 4 24 24 1.03185 29 0.429936E-01 5 16 16 0.437437 12 0.273398E-01 Total 100 100 3.46124 100 0.346124E-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 4 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 3.43601 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 16 16 0.595231 17 0.372020E-01 2 23 23 0.933857 27 0.406025E-01 3 30 30 0.986954 28 0.328985E-01 4 16 16 0.493149 14 0.308218E-01 5 15 15 0.426822 12 0.284548E-01 Total 100 100 3.43601 100 0.343601E-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 4 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 15 15 0.391450 11 0.260966E-01 3 16 16 0.644884 18 0.403053E-01 4 24 24 1.03185 29 0.429936E-01 5 14 14 0.341942 9 0.244244E-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.452896034127306 2 5.7653246937920448 3 4.9156398693945498 4 4.8306057044283000 Number of iterations taken is 5 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 "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 8 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 5.86787 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 19 19 1.12261 19 0.533475E-01 2 16 16 0.644884 10 0.403053E-01 3 13 13 0.344166 5 0.264743E-01 4 22 22 2.38531 40 0.428039E-01 5 30 30 1.37091 23 0.307024E-01 Total 100 100 5.86787 100 0.386541E-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 6 Clustering statistics: Number of clusters is 5 Number of points is 100 Total energy is 5.34014 Cluster Population Energy Variance ------- ----------- ----------------- -------------- # % value % 1 21 21 1.86478 34 0.803778E-01 2 15 15 0.429425 8 0.286283E-01 3 34 34 2.10030 39 0.480487E-01 4 14 14 0.524659 9 0.293480E-01 5 16 16 0.420971 7 0.257715E-01 Total 100 100 5.34014 100 0.457423E-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. 6 October 2025 6:21:04.902 PM