biotite.structure.centroid

biotite.structure.centroid(atoms)[source]

Measure the centroid of a structure.

Parameters
atoms: ndarray or AtomArray or AtomArrayStack

The structures to determine the centroid from. Alternatively an ndarray containing the coordinates can be provided.

Returns
centroidfloat or ndarray

The centroid of the structure(s). ndarray is returned when an AtomArrayStack is given (centroid for each model).