Skip to contents

Smallest disc meeting every median line of an odd set of ideal points in the plane, from the exact farthest-median-line distance (convex in the centre; the interior-arc case where limiting median lines do not suffice is included) minimised by Nelder-Mead from the centroid and each ideal point.

Usage

Yolk(ideals, tol = 1e-12)

Arguments

ideals

Two-column matrix of ideal points (odd count).

tol

Radius below which the core is declared to exist.

Value

list(center, radius, core).

References

McKelvey, R. D. (1986). Covering, dominance, and institution-free properties of social choice. American Journal of Political Science 30, 283-314. Stone, R. E. and Tovey, C. A. (1992). Limiting median lines do not suffice to determine the yolk. Social Choice and Welfare 9, 33-35.

Examples

Yolk(rbind(c(0, 0), c(1, 0), c(-1, 0), c(0, 1), c(0, -1)))$radius
#> [1] 0