| rrm | R Documentation |
Generates a random rotation matrix as described in Blaser and Fryzlewicz (2016).
rrm(n)
n |
Integer specifying the dimension of the resulting (square) random rotation matrix. |
An n-by-n matrix (i.e., an object of class
c("matrix" "array").
https://www.jmlr.org/papers/volume17/blaser16a/blaser16a.pdf.
Rico Blaser and Piotr Fryzlewicz. Random rotation ensembles. Journal of Machine Learning Research, 17:1–26, 2016.
(R <- rrm(3))
det(R) # determinant should always be +1
solve(R) # R^{-1} = R'
t(R) # R^{-1} = R'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.