def __init__(self, distance_matrix, labels):
self.table_distances = similarity_table_distances(distance_matrix.astype(float))<EOL>self.table_labels = similarity_table_labels(labels.astype(int))<EOL>print(len(labels), len(distance_matrix))<EOL>order = np.lexsort([self.table_labels[:, <NUM_LIT:1>], self.table_labels[:, <NUM_LIT:0>]])<EOL>self.table_labels = self.table_labels[order]<EOL>self.table_distances = self.table_distances[order]<EOL>
Initialize a similarity descriptor

           Arguments:
             distance_matrix  --  a matrix with interatomic distances, this can
                                  also be distances in a graph
             labels  --  a list with integer labels used to identify atoms of
                         the same type