proc_align {fase}R Documentation

Procrustes alignment

Description

proc_align orthogonally transforms the columns of a matrix A to find the best approximation (in terms of Frobenius norm) to a second matrix B. Optionally, it may also return the optimal transformation matrix.

Usage

proc_align(A,B,return_orth=FALSE)

Arguments

A

An n \times d matrix.

B

An n \times d matrix.

return_orth

A Boolean which specifies whether to return the orthogonal transformation. Defaults to FALSE.

Value

If return_orth is FALSE, returns the n \times d matrix resulting from applying the optimal aligning transformation to the columns of A. Otherwise, returns a list with two entries:

Ao

The n \times d matrix resulting from applying the optimal aligning transformation to the columns of A.

orth

The d \times d optimal aligning orthogonal transformation matrix.


[Package fase version 1.0.1 Index]