Given a set of data, I have plotted a slowness curve for a p-wave resulting from the given data. A slowness curve is just the reciprocal of the velocity of the p-wave. What I need to do is find a circle of a given radius that will be the 'best fit' or closest circle to the slowness curve, using an optimization of the L2 norm. Basically, I need to minimize the following function:
S=Sum[(y_i-f(x_i))^2,{i,n}]
NMinimize[S,r]
where S is function above and r is the radius of the best fit circle. What I have thus far is:
a = 8.064069;
b = 2.340275;
c = 1.862519;
d = 2.458775;
e = 7.081722;
delta1 = ((a - c)*Sin[Q]^2 - (e - c)*
Cos[Q]^2)^2 + 4*(c+d)^2*Sin[Q]^2*Cos[Q]^2;
qPa = Sqrt[((e-a)*Cos[Q]^2 + 1a + c +
Sqrt[delta1])/2];
plot1a = PolarPlot[1/qPa, {Q, 0, Pi/2}, PlotStyle -> {Black},
AspectRatio -> 1];
plot2a = Graphics[Circle[{0, 0}, 0.37, {0, 2*Pi}]];
Show[plot1a, plot2a]

I'm not familiar with using NMinimize and am stuck with this problem. Would appreciate and welcome any suggestions!!
