tropea_clustering.plot.plot_state_populations

tropea_clustering.plot.plot_state_populations(title, n_windows, labels)[source]

Plot the populations of states over time.

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

  • n_windows (int) – The number of windows used.

  • 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.