Skip to content

vlt.math.center_of_mass

  vlt.math.center_of_mass Compute center of mass of points

   POS = vlt.math.center_of_mass(POINTS, [WEIGHTS])

   Computes the center of mass of a group of points.  Each row should
   contain a separate point in N-space.  If a weights vector is provided,
   then each point is weighted by the corresponding weight.