Ernst Niggli edited res_fitfunction.md  over 9 years ago

Commit id: 5a45a6a26497b2253e17e0d87922757df08a0051

deletions | additions      

       

\]  where \(b\) is a n-th order polynomial with \(\mathbf{q}_i\) being the polynomial coefficients for the *i*-th pixel, summation is performed over all *m* events in the pixel, \(W\) represents noise and \(R\) is the remaining residual not captured in the baseline nor events. Ideally, \(R=0\), but achieving this is limited by the accuracy of the event region detection (we cannot fit what we do not detect) and whether or not our fitting function is general enough to be able to approximate various types of events.  Because it is not know known  which part of the signal is the event and which is the baseline baseline,  the first fit also has to estimate the baseline properties. Signal in the candidate region is fitted with an extended fit function (Figure \ref{fig:fit}) that also depends on relaxation baseline \(B\) and baseline offset \(C\). The \(C\) parameter allows for the possibility of an elevated background before the release event.