Description Usage Arguments Value Examples
A (row-)stochastic matrix is a matrix whose rums sum to 1. There is a natural one-to-one corrospondence between stochastic matrices and Markov Chains; this is so when its i,j entry represent the transition probability from state i to state j.
1 |
N |
number of dimensions of the square matrix |
symm |
indicates whether the matrix should be symmetric; equal to its transpose. |
sparsity |
indicates whether the matrix should add some arbitrary sparsity (zeros) |
A random stochastic matrix.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.