DCMrandom {RSpincalc}R Documentation

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).

Author(s)

Jose Gama

Examples

DCMrandom()
DCMrandom(5)

[Package RSpincalc version 1.0.2 Index]