This function returns the index we want to maximize on the set of potential clusters, for each potential cluster and each permutation
dfree(data, matrix_clusters)
numeric matrix.
numeric matrix. Matrix of the data. The rows correspond to the sites (or the individuals) and each column represents a permutation.
numeric matrix. Matrix in which each column represents a potential cluster. It is the result of the "clusters" function.