Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Well, as an option, we find the extreme points: upper left, upper right, lower right and lower left.
As a result, we get a rectangle and inscribe a circle in this rectangle
And how are they distributed? If it is uniform, or at least symmetrical, then first we look for the center of mass (the arithmetic mean of all coordinates in X and Y separately, because the "masses" are equal), and then we calculate the average distance of the points from this center - this will be the radius . The center and radius are the circle.
But if not evenly and symmetrically, then it's hard to say. For example, this case:
Use the Emo Welzl algorithm to construct the minimum enclosing circle
https://www.cyberforum.ru/geometry/thread1926478.h...
www.stsci.edu/~RAB/Backup%20Oct%2022%202011/f_3_Ca. ..
Then reduce the radius of the found circle (by fixing the center) so that the number of points inside and outside becomes approximately the same.
Since you did not give any detailed requirements for the desired circle, this algorithm will be no better and no worse than any others.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question