I am trying to use minerr for optimization of my function which has 13 parameters. The problem is that although my function and my data are sinusoidal, the Weibull fit gives me a line instead of a sinusoidal curve passing through the points. I wonder if somebody could take a look at it. Many thanks in advance.
Your experimental results look much like an exponentially growing sinewave: f(N)=exp(N/No)*sin(N/Nt)
So it is understandable that it does not fit a Weibull function.
Next to that, the D_M function behaves very ill (or am I abusing it?):
This is not a type of function that you can do minerr or other types of parameter estimations with.
Thank you for your responses @LucMeekes and @RichardJ. You are right Luc, my function was ill. I modified it and it works well now (see the attached). Exactly, that is an exponentially growing sinewave, but if you look at the pic, the weibull can estimate it somehow, but its amplitude is not high enough. Actually, it is related to the topic you mentioned. To tell you the truth, I did not understand what should I do finally.