_calculate(self,
model_from=None,
model_to=None,
coord_from=None,
coord_to=None,
centroid=None)
| source code
|
Calculate the rotational and translational displacements using the
given coordinate sets.
This uses the Kabsch algorithm
(http://en.wikipedia.org/wiki/Kabsch_algorithm).
- Parameters:
model_from (int) - The model number of the starting structure.
model_to (int) - The model number of the ending structure.
coord_from (numpy rank-2, Nx3 array) - The list of atomic coordinates for the starting structure.
coord_to (numpy rank-2, Nx3 array) - The list of atomic coordinates for the ending structure.
centroid (list of float or numpy rank-1, 3D array) - An alternative position of the centroid, used for studying
pivoted systems.
|