sknano.core.atoms.StructureAtoms.centroid

StructureAtoms.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.