sknano.core.atoms.POAVAtoms.centroid

POAVAtoms.centroid

Centroid of Atoms.

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

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

C : Vector

The position vector of the centroid coordinates.