powered by
mkStochastic ensures that it is a stochastic vector, matrix or array.
mkStochastic(M)
A vector, matrix or array to transform.
A vector, matrix or array for which the sum over the last dimension is 1.
mkStochastic ensures that the giving argument is a stochastic vector, matrix or array, i.e., that the sum over the last dimension is 1.