a dissimilarity or similarity structure