vampire.analysis.reorder_centroids#

vampire.analysis.reorder_centroids(centroids, object_index)[source]#

Reorder centroids according to dendrogram order.

Parameters:
centroidsndarray

Centroids

object_indexndarray

How original cluster id correspond to new id.

Returns:
reordered_centroidsndarray

Reordered centroids.