test_Cluster
test_mean_median:
data = [  34.300,   3.000,   2.000]
mean is  13.100; median is   3.000
data = [   5.000,  10.000,  15.000,  20.000]
mean is  12.500; median is  12.500
data = [   1.000,   2.000,   3.000,   5.000,   7.000,  11.000,  13.000,  17.000]
mean is   7.375; median is   6.000
data = [ 100.000,  19.000,   3.000,   1.500,   1.400,   1.000,   1.000,   1.000]
mean is  15.988; median is   1.450

test_matrix_parse:
Read data1 (correct)
Read data2 (correct)
Refused incorrect matrix data3
Refused incorrect matrix data4
Refused incorrect matrix data5
Refused incorrect matrix data6
Refused incorrect matrix data7
Refused incorrect matrix data8
Refused incorrect matrix data9
Refused incorrect matrix data10

test_kcluster
First data set
Number of cluster ids is 4 (should be 4)
Correct clustering solution found.
Second data set
Number of cluster ids is 13 (should be 13)
Correct clustering solution found.

test_clusterdistance:
First data set:
[   1.100   2.200   3.300   4.400   5.500 ]
[   3.100   3.200   1.300   2.400   1.500 ]
[   4.100   2.200   0.300   5.400   0.500 ]
[  12.100   2.000   0.000   5.000   0.000 ]
Clusters are [0] [1, 2] [3]
Distance between cluster [0] and [1, 2] is   6.650.
Distance between cluster [0] and [3] is  32.508.
Distance between cluster [1, 2] and [3] is  15.118.
Second data set:
[   1.100   1.200 ]
[   1.400   1.300 ]
[   1.100   1.500 ]
[   2.000   1.500 ]
[   1.700   1.900 ]
[   1.700   1.900 ]
[   5.700   5.900 ]
[   5.700   5.900 ]
[   3.100   3.300 ]
[   5.400   5.300 ]
[   5.100   5.500 ]
[   5.000   5.500 ]
[   5.100   5.200 ]
Clusters are [0, 1, 2, 3] [4, 5, 6, 7] [8]
Distance between cluster [0, 1, 2, 3] and [4, 5, 6, 7] is   5.833.
Distance between cluster [0, 1, 2, 3] and [8] is   3.298.
Distance between cluster [4, 5, 6, 7] and [8] is   0.360.

test_treecluster:
First data set:
[   1.100   2.200   3.300   4.400   5.500 ]
[   3.100   3.200   1.300   2.400   1.500 ]
[   4.100   2.200   0.300   5.400   0.500 ]
[  12.100   2.000   0.000   5.000   0.000 ]
Pairwise average-linkage clustering
Number of nodes is 3 (should be 3)
Number of link distances is 3 (should be 3)
Node   0 joins node   2 with node   1; link distance is   2.600
Node   1 joins node  -1 with node   0; link distance is   7.300
Node   2 joins node   3 with node  -2; link distance is  21.348
Pairwise single-linkage clustering
Number of nodes is 3 (should be 3)
Number of link distances is 3 (should be 3)
Node   0 joins node   1 with node   2; link distance is   2.600
Node   1 joins node   0 with node  -1; link distance is   5.800
Node   2 joins node  -2 with node   3; link distance is  12.908
Pairwise centroid-linkage clustering
Number of nodes is 3 (should be 3)
Number of link distances is 3 (should be 3)
Node   0 joins node   1 with node   2; link distance is   2.600
Node   1 joins node   0 with node  -1; link distance is   6.650
Node   2 joins node  -2 with node   3; link distance is  19.437
Pairwise maximum-linkage clustering
Number of nodes is 3 (should be 3)
Number of link distances is 3 (should be 3)
Node   0 joins node   2 with node   1; link distance is   2.600
Node   1 joins node  -1 with node   0; link distance is   8.800
Node   2 joins node   3 with node  -2; link distance is  32.508
Second data set:
Pairwise average-linkage clustering
Number of nodes is 12 (should be 12)
Number of link distances is 12 (should be 12)
Node   0 joins node   5 with node   4; link distance is   0.003
Node   1 joins node   9 with node  12; link distance is   0.029
Node   2 joins node   2 with node   1; link distance is   0.061
Node   3 joins node  11 with node  -2; link distance is   0.070
Node   4 joins node  -4 with node  10; link distance is   0.128
Node   5 joins node   7 with node  -5; link distance is   0.224
Node   6 joins node  -3 with node   0; link distance is   0.254
Node   7 joins node  -1 with node   3; link distance is   0.391
Node   8 joins node  -8 with node  -7; link distance is   0.532
Node   9 joins node   8 with node  -9; link distance is   3.234
Node  10 joins node  -6 with node   6; link distance is   4.636
Node  11 joins node -11 with node -10; link distance is  12.741
Pairwise single-linkage clustering
Number of nodes is 12 (should be 12)
Number of link distances is 12 (should be 12)
Node   0 joins node   4 with node   5; link distance is   0.003
Node   1 joins node   9 with node  12; link distance is   0.029
Node   2 joins node  11 with node  -2; link distance is   0.033
Node   3 joins node   1 with node   2; link distance is   0.061
Node   4 joins node  10 with node  -3; link distance is   0.077
Node   5 joins node   7 with node  -5; link distance is   0.092
Node   6 joins node   0 with node  -4; link distance is   0.242
Node   7 joins node  -7 with node  -1; link distance is   0.246
Node   8 joins node   3 with node  -8; link distance is   0.287
Node   9 joins node  -9 with node   8; link distance is   1.936
Node  10 joins node -10 with node  -6; link distance is   3.432
Node  11 joins node   6 with node -11; link distance is   3.535
Pairwise centroid-linkage clustering
Number of nodes is 12 (should be 12)
Number of link distances is 12 (should be 12)
Node   0 joins node   4 with node   5; link distance is   0.003
Node   1 joins node  12 with node   9; link distance is   0.029
Node   2 joins node   1 with node   2; link distance is   0.061
Node   3 joins node  -2 with node  11; link distance is   0.063
Node   4 joins node  10 with node  -4; link distance is   0.109
Node   5 joins node  -5 with node   7; link distance is   0.189
Node   6 joins node   0 with node  -3; link distance is   0.239
Node   7 joins node   3 with node  -1; link distance is   0.390
Node   8 joins node  -7 with node  -8; link distance is   0.382
Node   9 joins node  -9 with node   8; link distance is   3.063
Node  10 joins node   6 with node  -6; link distance is   4.578
Node  11 joins node -10 with node -11; link distance is  11.536
Pairwise maximum-linkage clustering
Number of nodes is 12 (should be 12)
Number of link distances is 12 (should be 12)
Node   0 joins node   5 with node   4; link distance is   0.003
Node   1 joins node   9 with node  12; link distance is   0.029
Node   2 joins node   2 with node   1; link distance is   0.061
Node   3 joins node  11 with node  10; link distance is   0.077
Node   4 joins node  -2 with node  -4; link distance is   0.216
Node   5 joins node  -3 with node   0; link distance is   0.266
Node   6 joins node  -5 with node   7; link distance is   0.302
Node   7 joins node  -1 with node   3; link distance is   0.425
Node   8 joins node  -8 with node  -6; link distance is   0.968
Node   9 joins node   8 with node   6; link distance is   3.975
Node  10 joins node -10 with node  -7; link distance is   5.755
Node  11 joins node -11 with node  -9; link distance is  22.734

test_somcluster:
First data set:
Number of cluster ids is 4 (should be 4)
Grid is 2-dimensional (should be 2-dimensional)
Second data set:
Number of cluster ids is 13 (should be 13)
Grid is 2-dimensional (should be 2-dimensional)

