def centroid(y):
 return linkage(y, method='centroid', metric='euclidean')

def centroid ( y ) : return linkage ( y , method = 'centroid' , metric = 'euclidean' )
returns the center of the given list of vectors .