I want to fit a set of noisy data, obtained from the equation fm with added noise, to the same equation (with y=0; t=1).
Dif = 0.0000001; K0 = 0.5; z = 0; Intens = 25000;
angulo1 = 45*Pi/180;
lsup1 = Cos[angulo1]; linf\[Alpha] = 0.0;
m1 = -Tan[angulo1];
fm = T145[x_, y_, t_, b_, l_, d_] :=
Intens/(2*\[Pi]*K0)*
NIntegrate[
Sqrt[1 + m1^2]*
Erfc[Sqrt[(x - \[Alpha])^2 + (y - \[Beta])^2 + (z - (m1*\[Alpha] \
- d))^2]/Sqrt[
Dif*4*t]]/(Sqrt[(x - \[Alpha])^2 + (y - \[Beta])^2 + (z - \
(m1*\[Alpha] - d))^2]), {\[Beta], -b/2, b/2}, {\[Alpha], linf\[Alpha],
l*lsup1}]
Here data with added noise and then fitting:
Block[{y = 0, t = 1, b = 0.001, l = 0.001, d = 0.0001},
data = Table[{x,
fm[x, y, t, b, l, d] +
Random[NormalDistribution[0, 0.1]]}, {x, -0.0015, 0.002,
0.000015}]];
model = Intens/(2*\[Pi]*K0)*
NIntegrate[
Sqrt[1 + m1^2]*
Erfc[Sqrt[(x - \[Alpha])^2 + (-\[Beta])^2 + (z - (m1*\[Alpha] -
d))^2]/Sqrt[
Dif*4*1]]/(Sqrt[(x - \[Alpha])^2 + (-\[Beta])^2 + (z - (m1*\
\[Alpha] - d))^2]), {\[Beta], -b/2, b/2}, {\[Alpha], linf\[Alpha],
l*lsup1}];
fit = FindFit[data, model, {b, l, d}, x,
Method -> "LevenbergMarquardt"]
But the results are {b->1.,l->1.,d->1.}, that are patently wrong. Where is the problem? Thanks to all.

