proc_align3 {fase}R Documentation

Procrustes alignment for 3-mode tensors

Description

proc_align3 applies one orthogonal transformation to the columns of each of the n×dn \times d slices of an n×d×mn \times d \times m array AA to find the best approximation (in terms of matrix Frobenius norm, averaged over the n×dn \times d slices) to a second n×d×mn \times d \times m array BB. Optionally, it may also return the optimal transformation matrix.

Usage

proc_align3(A,B,return_orth=FALSE)

Arguments

A

An n×d×mn \times d \times m array.

B

An n×d×mn \times d \times m array.

return_orth

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

Value

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

Ao

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

orth

The d×dd \times d optimal aligning orthogonal transformation matrix.


[Package fase version 1.0.1 Index]