tropea_clustering.plot.plot_medoids_uni

tropea_clustering.plot.plot_medoids_uni(title, 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 (solid line) and standard deviation (shaded area) of the signal sequences contained in it is shown. The unclassififed seqeunces are shown individually in purple.

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

  • input_data (ndarray of shape (n_particles * n_windows, tau_window)) – The input data array.

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

Notes

  • If all the points are classified, we still need the “-1” state for consistency.

  • Prints the output to files.