function number_of_states

deeptime.markov.number_of_states(dtrajs, only_used=False) int

Returns the number of states in the given trajectories.

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

  • only_used (bool, default=False) – If False, will return max+1, where max is the largest index used. If True, will return the number of states that occur at least once.

Returns:

count – The number of states

Return type:

int