Will be needed in applications that explore high-dimensional data spaces,
for example optimization procedures or Monte Carlo methods.
Usage
rortho(n)
Arguments
n
positive integer.
Value
Orthogonal matrix Q of size n, that is Q %*% t(Q)
is the unit matrix of size n.
Details
Uses the idea of the Stewart 1980, ``The Efficient Generation of Random
Orthogonal Matrices with an Application to Condition Estimators'', to apply
the Householder transformation to a uniformly distributed random vector.