C# code for best-fit circle
<p>I would like C# code for determining the centre and radius of the circle that best fits the points in an array using the least squares method or equivalent.</p>

<p>Having searched on web I've found none.</p>
