PoreMS 0.3
  • API
  • Molecule
  • Pore
  • Workflow
  • Pore shape examples
  • Site
    • Page
        • Molecule.centroid
          • Molecule.centroid()
    • Molecule.centroid
      • Molecule.centroid()
    Source

    Molecule.centroid¶

    Molecule.centroid()¶

    Calculate the geometrical center of mass

    \[\text{centroid}=\begin{pmatrix}c_1&c_2&\dots&c_n\end{pmatrix}^T\]

    with

    \[c_i=\frac{1}{m}\sum_j^m d_{ij}.\]

    Hereby \(i\dots n\) stands for the dimension and \(j\dots m\) for the molecule.

    Returns:
    Centroidlist

    Geometrical center of mass

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.