Centroid linkage

Given two clusters of diseases:

the centroid vector for cluster G is then:

The complete set of equations used can be found here