Procrustes Transform of Rectangular matrix
.transform_procrustes(X, target, translation = TRUE, scale = TRUE)dense matrix to transform
dense matrix that is the target of the transform
boolean; whether positions should be translated
boolean; whether positions should be scaled
returns a list of four elements:
the transformed matrix Xstar
the rotation matrix R
the translation vector t_vec
the scaling factor sigma
The transformed matrix Xstar can be recreated by the equation sigma * X * R if translation is FALSE. If translation is TRUE, adding t_vec to each row of the matrix sigma * X * R completes the transformation.