Description Usage Arguments Value Author(s) Examples
Random rotation matrix
Function for generating a random rotation matrix in R^p using the QR decomposition of random normal distribution.
1 | randrotate(p = 2)
|
p |
dimension of desired random rotation matrix (default = 2) |
p x p random rotation matrix
Patrick Kimes
1 2 3 4 | ## Not run:
rotated_x <- tcrossprod(x, randrotate(ncol(x))) #nxp matrix
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.