protate {ProcMod} | R Documentation |
Rotate the src
matrix to fit into the space of the dest
matrix.
Description
The optimal rotation is computed according to the procruste methode. Rotation is based on singular value decomposition (SVD). No scaling and no centrering are done, before computing the SVD.
Usage
protate(src, dest)
Arguments
src |
a numeric matrix to be rotated |
dest |
a numeric matrix used as reference space |
Value
a numeric matrix
Author(s)
Christelle Gonindard-Melodelima
Eric Coissac
Examples
# Generates two random matrices of size 10 x 15
m1 <- simulate_matrix(10, 15)
m2 <- simulate_matrix(10, 20)
# Rotates matrix m1 on m2
mr <- protate(m1, m2)
[Package ProcMod version 1.0.8 Index]