tropea_clustering.plot.plot_medoids_multi

tropea_clustering.plot.plot_medoids_multi(title, tau_window, input_data, labels)[source]

Compute and plot the average signal sequence inside each state.

Here’s an example of the output:

Example Image

For each cluster, the average of the signal sequences contained in it is shown (large solid points). The unclassififed seqeunces are shown individually in purple (thin lines).

Parameters:
  • title (str) – The path of the .png file the figure will be saved as.

  • tau_window (int) – The length of the signal window used.

  • input_data (ndarray of shape (n_dims, n_particles, n_frames)) – The input data array.

  • labels (ndarray of shape (n_particles * n_windows,)) – The output of the clustering algorithm.

Notes

If there are no assigned window, we still need the “-1” state for consistency