The Bounding Circle is the smallest enclosing circle to a given set of points on a plane https://en.wikipedia.org/wiki/Smallest-circle_problem
Find the radius r and center coordinates x, y of the smallest enclosing circle to the points with coordinates Xp, Yp (both [n x 1] vectors).
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6
Suggested Problems
-
14368 Solvers
-
Check to see if a Sudoku Puzzle is Solved
341 Solvers
-
Number of 1s in the Binary Representation of a Number
487 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1330 Solvers
-
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
253 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I've implemented the Welzl's algorithm, but, please, be warned as I've learned later that sometimes the algorithm fails. Years later, Matoušek, Sharir, and Welzl seems to have fixed the problem, creating a new version of the algorithm (adding one additional test).
I think the tolerance in Test 3 is a bit too tight. My solution fails in about 28% of the cases because the numerical error max(D)-r is up to 8*eps.