Perhaps best asked in three parts:
Given five not necessarily coplanar points (in 3 dimensions), what is a good measure of how close to coplanar they are?
Given another set of five not necessarily coplanar points, how can we assess which of these two sets of five points is “more coplanar”?
Given n sets of five not necessarily coplanar points, how can we order these sets of points from “most coplanar” to “least coplanar”?
Suggestions?
I’m working with sets of five points at a time, but will eventually need to consider more points in these sets.
Is this a well-formulated question? An algorithm would be helpful, especially if coded in Python.