protate: Rotate the 'src' matrix to fit into the space of the 'dest'...

Description Usage Arguments Value Author(s) Examples

View source: R/procuste.R

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

1
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

1
2
3
4
5
6
# 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)

ProcMod documentation built on May 12, 2021, 9:08 a.m.

Related to protate in ProcMod...