RandRot: Samples a p x p uniformly random rotation matrix

View source: R/RotMat.R

RandRotR Documentation

Samples a p x p uniformly random rotation matrix

Description

Samples a p x p uniformly random rotation matrix via QR decomposition of a matrix with elements sampled iid from a standard normal distribution.

Usage

RandRot(p)

Arguments

p

The columns of an n by p numeric matrix or data frame.

Value

A p x p uniformly random rotation matrix.

See Also

RotMatPPO RotMatRand RotMatRF RotMatMake

Examples

set.seed(220828)
(RandRot(10))


ODRF documentation built on May 31, 2023, 8:22 p.m.