Hope you are doing well!
Recently we have been working on fitting a mass spectrum with is expected to be monotonically falling. The function I chose can be monotonically falling if the parameters are within a certain range but if one of them running out of the range, the function would lose its monotonically falling nature. To ensure the function is doing the right thing (keeps falling across the whole fitting range), what we want to do is to add a penalty term to the FCN when the derivative of the function becomes positive.
I found out that my using option “U”, one can specify the fitting algorithms, but unfortunately I did not find an example to help me get started (like how should the algorithm be defined, is it a function of FCN or something else?). Do you have any suggestions?
Thanks a lot for your kind help!