sknano.core.atoms.XYZAtoms.centroid

XYZAtoms.centroid

Centroid of Atoms.

Computes the position vector of the centroid of the Atoms coordinates.

\[\mathbf{C} = \frac{\sum_{i=1}^{N_{\mathrm{atoms}}} \mathbf{r}_i}{N_{\mathrm{atoms}}}\]
Returns:

C : Vector

The position vector of the centroid coordinates.