Description Usage Arguments Details Value

mkStochastic ensures that it is a stochastic vector, matrix or array.

1 | ```
mkStochastic(M)
``` |

`M` |
A vector, matrix or array to transform. |

mkStochastic ensures that the giving argument is a stochastic vector, matrix or array, i.e., that the sum over the last dimension is 1.

A vector, matrix or array for which the sum over the last dimension is 1.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.