You're reading an old version of this documentation. If you want up-to-date information, please have a look at 0.10.0.
Construct a uniform transition matrix over
- n_statesint > 0
The number of states
- transitionnp.ndarray [shape=(n_states, n_states)]
transition[i, j] = 1./n_states
>>> librosa.sequence.transition_uniform(3) array([[0.333, 0.333, 0.333], [0.333, 0.333, 0.333], [0.333, 0.333, 0.333]])