protate {ProcMod} | R Documentation |
src
matrix to fit into the space of the dest
matrix.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.
protate(src, dest)
src |
a numeric matrix to be rotated |
dest |
a numeric matrix used as reference space |
a numeric matrix
Christelle Gonindard-Melodelima
Eric Coissac
# 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)