deeptime.markov.tools.analysis.hitting_probability

deeptime.markov.tools.analysis.hitting_probability(T, target)

Computes the hitting probabilities for all states to the target states.

The hitting probability of state i to the target set A is defined as the minimal, non-negative solution of:

\[h_i^A &= 1 \:\:\:\: i\in A \\ h_i^A &= \sum_j p_{ij} h_i^A \:\:\:\: i \notin A \]
Parameters:
  • T ((M, M) ndarray or scipy.sparse matrix) – Transition matrix

  • target (array_like) – List of integer state labels for the target set

Returns:

h – a vector with hitting probabilities

Return type:

ndarray(n)