Ardo Illaste edited res_fitting2.md  almost 10 years ago

Commit id: 0381027fd64ec2a7829469857cf1552000795365

deletions | additions      

       

#### Fitting procedure  After parameter optimization with the extended fit function the same signal is fitted with a line. For both models the corrected Akaike Information Criterion (AICc \cite{Burnham_2004}) is calculated and the region is accepted only if the AICc for the fit function is less than the AICc for the line. This ensures that the fit obtained with the fit function is good enough to justify the use of a more complicated model.  In order to reconstruct the entire image with all the pixels it is also necessary to know the location of the pixels. The parameter vector \(\mathbf{p}_i\) is extended with the coordinates of pixel *i*: