tropea_clustering.plot.plot_pop_fractions

tropea_clustering.plot.plot_pop_fractions(title, list_of_pop, tra)[source]

Plot, for every time resolution, the populations of the ENVs.

Here’s an example of the output:

Example Image

For each time resolution analysed, the bars show the fraction of data points classified in each cluster. Clusters are ordered according to the value of their Gaussian’s mean; the bottom cluster is always the unclassified data points.

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

  • list_of_pop (List[List[float]]) – For every tau_window, this is the list of the populations of all the states (the first one is ENV0).

  • tra (ndarray of shape (n_windows, 3)) – Contains the number of states and the population of ENV0 at every tau_window.

Notes

The bottom state is the ENV0.