function count_states

deeptime.markov.count_states(dtrajs, ignore_negative: bool = False)

Computes a histogram over the visited states in one or multiple discretized trajectories.

Parameters:
  • dtrajs (array_like or list of array_like) – Discretized trajectory or list of discretized trajectories

  • ignore_negative (bool, default=False) – Ignore negative elements. By default, a negative element will cause an exception

Returns:

count – the number of occurrences of each state. n=max+1 where max is the largest state index found.

Return type:

ndarray((n), dtype=int)