hatvis.plotting.min_volume_ellipse#

hatvis.plotting.min_volume_ellipse(points, tol=0.001, max_iter=1000)[source]#

Minimum-volume enclosing ellipse of a point set.

The ellipse is \(\{\mathbf{x}:(\mathbf{x}-\mathbf{c})^\mathsf{T}\mathbf{A}(\mathbf{x}-\mathbf{c})\le1\}\).

Khachiyan’s barycentric coordinate-ascent algorithm (Khachiyan 1996; Todd and Yildirim 2007). Needs at least three affinely independent points; otherwise a small circle/segment-shaped ellipse is returned.