I would like to know if there are any math formulas that define the Gestalt's Law of Proximity.
For example, in the picture above, at what distance of Y would the 4th square be perceived not a part of the group?