mean_dist function

Mean distance matrix from a set of distance matrices