evomap.transform
Contents
evomap.transform
#
Useful transformations after maps have been generated.
Module Contents#
Functions#
|
Align a sequence of maps to a reference map via Orthogonal |
|
Align a map to a reference map via Orthogonal Procrustes Analysis. |
- evomap.transform.align_maps(Xs, X_ref)[source]#
Align a sequence of maps to a reference map via Orthogonal Procrustes Analysis.
- Parameters
Xs (list of ndarrays, each of shape (n_samples, n_dims)) – List of map coordinates
X_ref (ndarray, shape (n_samples, n_dims)) – Reference map to which all other maps should be aligned to
- Returns
List of aligned map coordinates
- Return type
list of ndarrays, each of shape (n_samples, n_dims)
- evomap.transform.align_map(X, X_ref)[source]#
Align a map to a reference map via Orthogonal Procrustes Analysis.
- Parameters
X (ndarray of shape (n_samples, n_dims)) – Map coordinates
X_ref (ndarray of shape (n_samples, n_dims)) – Reference map
- Returns
Aligned map
- Return type
ndarray, of shape (n_samples, n_dims)