generate_random_T | R Documentation |
This helper function generates a transition matrix at random for testing purposes
generate_random_T(n = 3)
n |
(integer) dimension of a transition matrix |
Uniform random numbers [0,1]
are used to fill the matrix. Rows are then
normalized.
random n x n
transition matrix
mat_T <- generate_random_T(3)
mat_T
rowSums(mat_T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.