
Fitfunc report only for fit convergence

maru
Hi,
I am using Fitfunc command to fit 1000 data sets with a user defined fit function. I want to know which fit was NOT converged properly.
However, general report in command line contains too many information.
Can I simply get the wave name of non-converged fits? I have tried to use V_flag but it does not report properly.
Look at DisplayHelpTopic "Special Variables for Curve Fitting"
August 30, 2019 at 02:43 am - Permalink
Here is something that I use in a user function that reports an error if a fit fails. Maybe that helps.
August 30, 2019 at 03:07 am - Permalink
In reply to Look at DisplayHelpTopic … by olelytken
Thanks for the advice. I found V_FitNumIters and can get the iteration number to check if the fit is converged.
August 30, 2019 at 05:18 am - Permalink
In reply to olelytken wrote: Look at… by maru
I'm not sure this is a good way to do it. I would use a combination of V_fitError and V_fitQuitReason:
Note that you need to create these variables yourself. Also, you should zero them right before calling CurveFit or FuncFit.
August 30, 2019 at 09:36 am - Permalink
In reply to maru wrote: Thanks for… by johnweeks
Thanks! This solution is much better.
September 1, 2019 at 05:31 am - Permalink