Description Usage Arguments Details Value Author(s) Examples
Generate a random permutation matrix for n
samples.
1 | randpermut(n)
|
n |
Number of samples |
This methods generates an orthogonal matrix with only
one entry in each row and column being 1
, all other entries being
0
.
A random permutation matrix of dimension n x n
Peter Hettegger
1 2 | tmp1 <- randpermut(5)
t(tmp1) %*% tmp1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.