chemcoord.xyz_functions.get_kabsch_rotation
- chemcoord.xyz_functions.get_kabsch_rotation(Q, P, weights=None)[source]
Calculate the optimal rotation from
PuntoQ.Using the Kabsch algorithm the optimal rotation matrix for the rotation of
otheruntoselfis calculated. [1] The algorithm is described very well in wikipedia.- Parameters:
- Returns:
The optimal rotation matrix as a numpy array.
- Return type: