You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like this module, as is makes analysis very easy. However, I wonder about the fitting for M2. Especially I refer to
def _beam_fit_fn_(z, d0, z0, Theta): """Fitting function for d0, z0, and Theta.""" return d0**2 + (Theta*(z-z0))**2
I understand the idea of fitting d(z)^2 = ... wwithout the sqrt. But if I change the input from d**2 to d and also the function from d0**2 + (Theta*(z-z0))**2 to np.sqrt(d0**2 + (Theta*(z-z0))**2), I get different results.
Has anyone an idea, where this change comes from and how to get the proper output? Which of the two versions is right?
The text was updated successfully, but these errors were encountered:
I think I have opened this issue to early. The differences are not only related to the different fitting functions, they also depend on the data set himself and consequently on the proper definitions of starting values and bounds where the fit function ends up.
Therefore, the fitting by the sqrt-function seems to be all right and I close this issue again.
You bring up an interesting point though. Changing the fitting function changes how errors in data are weighted. I have to look more carefully, but the current code might be overweighting beam size measurement made farther away from the beam waist.
I like this module, as is makes analysis very easy. However, I wonder about the fitting for M2. Especially I refer to
def _beam_fit_fn_(z, d0, z0, Theta): """Fitting function for d0, z0, and Theta.""" return d0**2 + (Theta*(z-z0))**2
I understand the idea of fitting d(z)^2 = ... wwithout the sqrt. But if I change the input from d**2 to d and also the function from
d0**2 + (Theta*(z-z0))**2
tonp.sqrt(d0**2 + (Theta*(z-z0))**2)
, I get different results.Has anyone an idea, where this change comes from and how to get the proper output? Which of the two versions is right?
The text was updated successfully, but these errors were encountered: