brainspace.gradient.alignment.procrustes

brainspace.gradient.alignment.procrustes(source, target, center=False, scale=False)[source]

Align source to target using procrustes analysis.

Parameters:
  • source (2D ndarray, shape = (n_samples, n_feat)) – Source dataset.
  • target (2D ndarray, shape = (n_samples, n_feat)) – Target dataset.
  • center (bool, optional) – Center data before alignment. Default is False.
  • scale (bool, optional) – Remove scale before alignment. Default is False.
Returns:

aligned (2D ndarray, shape = (n_samples, n_feat)) – Source dataset aligned to target dataset.