Description Usage Arguments Value Examples
View source: R/bootstrap_functions.R
genQ
generates a square matrix of random normal noise, and then takes the QR decomposition to return Q, a random orthogonal square matrix.
1 | genQ(n, lim_attempts = 200)
|
n |
the dimension of the desired random orthonormal matrix |
lim_attempts |
the random matrix of normal noise must be full rank to generate the appropriate QR decomposition. |
a random orthonormal (n by n) matrix
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.