Convert any string into a stochastic matrix: Markov Chains



The original publication of the algorithm: Paul A. Gagniuc. Markov chains: from theory to implementation and experimentation. Hoboken, NJ, John Wiley & Sons, USA, 2017, ISBN: 978-1-119-38755-8.