The error message w = 0 in Givens();
seems to be related to inability of fit
to perform the next iteration of fit parameters estimation. The error message is accompanied by the values of a certain matrix C[][]
that is related to the direction of the next step of the fit iterations. Those values are usually very small, like in the example, Cjj = 3.37383e-196, Cij = 2.54469e-192
. This means that the fit process has converged to a state where every other local set of fit parameters are less optimal than the current (local state extreme), but the current residuals are above the convergence limit, in this case delta(WSSR) : -3.7849 limit for stopping : 1e-05
. This happens when the data to be fitted exhibits a disturbance (at approximately x=-13
in this case) that yields significant delta
despite the perfect fit.
Long story short: the error usually happens when the fit is fine but the delta is still high.