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:
- states
numpy.ndarrayor list ofnumpy.ndarray The state(s) used to compute the probability.
statescan be a single state or a list of states.
- states
- Returns:
- probabilitiesfloat or
numpy.ndarray - float:
If
statesis a single state.numpy.ndarray:If
statesis a list of states,probabilities[i]is the probability corresponding to thei-th state.
- probabilitiesfloat or
See also