deepof.post_hoc.get_transitions

deepof.post_hoc.get_transitions(state_sequence: list, n_states: int, index_sequence: list | None = None)

Compute the transitions between states in a state sequence.

Parameters:
  • state_sequence (list) – A list of states.

  • n_states (int) – The number of states.

  • index_sequence (list) – An optional list of index positions for the states. Will ensure that state transitions between non-neighboring sequence entries are skipped

Returns:

The resulting transition matrix.