hypertools.tools.
procrustes
(source, target, scaling=True, reflection=True, reduction=False, oblique=False, oblique_rcond=-1)[source]¶Function to project from one space to another using Procrustean transformation (shift + scaling + rotation + reflection).
The implementation of this function was based on the ProcrusteanMapper in pyMVPA: https://github.com/PyMVPA/PyMVPA
See also: http://en.wikipedia.org/wiki/Procrustes_transformation
Parameters: | source : Numpy array
target: Numpy array
scaling : bool
reflection : bool
reduction : bool
oblique : bool
oblique_rcond : float
|
---|---|
Returns: | aligned_source : Numpy array
|