系统聚类法的基本思想：

$D^2_{rk}=\frac{1}{n_rn_k}\sum\limits_{i\in G_r,j\in G_k} d^2_{ij}=\frac{1}{n_rn_k}[\sum\limits_{i\in G_p,j\in G_k} d^2_{ij} + \sum \limits_{i\in G_q,j\in G_k}d^2_{ij}]$

import numpy as np
from matplotlib import pyplot as plt

data=np.array([[190.33,43.77,9.73,60.54,49.01,9.04],
[135.2,36.4,10.47,44.16,36.49,3.94],
[95.21,22.83,9.3,22.44,22.81,2.8],
[104.78,25.11,6.4,9.89,18.17,3.25],
[128.41,27.63,8.94,12.58,23.99,3.27],
[145.68,32.83,17.79,27.29,39.09,3.47]
])
plt.show()