Learn R Programming

fmds (version 0.1.5)

rotation: Rotation

Description

rotation returns rotation matrix, such that || rotation * source - target ||^2_weights is minimal.

Usage

rotation(source, weights = NULL, target = NULL, error.check = FALSE)

Value

rotation matrix

Arguments

source

n x m source matrix

weights

diagonal of weights matrix, size n

target

if NULL: rotate source to principal axes; otherwise: rotate source to n x m target

error.check

extensive check validity input parameters (default = FALSE).

Author

Frank M.T.A. Busing

References

Gower (1968). Commandeur (1991).