
Midpoint of the largest gap on the circle [0,1).
Source:R/manifold-torus.R
largest_gap_point_torus.RdGiven a set of forbidden values on the circle, returns the point that is as far as possible from every forbidden value: the midpoint of the largest circular gap between them. This guarantees the returned point is not itself in the forbidden set.
Examples
largest_gap_point_torus(c(0.1, 0.3, 0.35))
#> [1] 0.725