msmtools.dtraj.number_of_states

msmtools.dtraj.number_of_states(dtrajs, only_used=False)

returns the number of states in the given trajectories.

Parameters:
  • dtraj (array_like or list of array_like) – Discretized trajectory or list of discretized trajectories
  • = False (only_used) – 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.