Learn R Programming

RSpincalc (version 1.0.2)

DCMrandom: Generate uniform random direction cosine matrices

Description

DCMrandom generates uniform random direction cosine matrices.

Usage

DCMrandom(n=NA, tol = 10 * .Machine$double.eps, ignoreAllChk=FALSE)

Arguments

n
Optional integer for the number of generated direction cosine matrices, default = 1.
tol
Tolerance from deviations from unity for the determinant of rotation matrices or the the vector length for unitary vectors.
ignoreAllChk
Logical, TRUE=disables all warnings and error checks (use with caution!).

Value

DCM
Direction cosine matrix or array (DCM).

Examples

Run this code
DCMrandom()
DCMrandom(5)

Run the code above in your browser using DataLab