It seems that two enclosures will be useful when there are two (or more) separated by long clusters. Therefore, I would suggest trying a simple method (probably an approximate one):
construct convex hull find the farthest pair of points (A, B) in hull with rotating calipers divide all the points with middle perpendicular to AB segment find hulls of resulted clouds and calculate profit or loss

Added: find the farthest pair of points with rotating calipers
Added 2: How to split a point cloud with a middle perpendicular:
Midpoint: M = (A + B) / 2
(MX = (AX + BX) / 2, MY = (AY + BY) / 2)
AB vector: (BX-AX, BY-AY)
The middle perpendicular line has the general equation:
(yM.Y) / AB.X = - (xM.X) / AB.Y (yM.Y) * AB.Y + (xM.X) * AB.X = 0 //incorrect x * AB.X + y * AB.Y - (AB.Y^2 + AB.X^2)/2 = 0 x * AB.X + y * AB.Y - (BY^2 - AY^2 + BX^2 - AX^2)/2 = 0
When you use P [i] .X and P [i] .Y for each point instead of x and y in the last equation, you will get a positive value for the points to the left and a negative value for the points to the right of the line (and a zero value for points on the line)
source share