hiperwalk.Coined.success_probability#

Coined.success_probability(states)#

Computes the success probability for the given state(s).

The success probability is the probability of the walker being found in any of the marked vertices. If no vertex is marked, the success probability is 0.

Parameters:
statesnumpy.ndarray or list of numpy.ndarray

The state(s) used to compute the probability. states can be a single state or a list of states.

Returns:
probabilitiesfloat or numpy.ndarray
float:

If states is a single state.

numpy.ndarray:

If states is a list of states, probabilities[i] is the probability corresponding to the i-th state.

See also

probability