What's the best way to calculate a 3D (or n-D) centroid?

后端 未结 8 469
萌比男神i
萌比男神i 2021-02-04 00:35

As part of a project at work I have to calculate the centroid of a set of points in 3D space. Right now I\'m doing it in a way that seems simple but naive -- by taking the avera

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 01:06

    you can use increase accuracy summation - Kahan summation - was that what you had in mind?

提交回复
热议问题