You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When FitTrace encounters a fully masked bin (which can also be a fully masked column, if nbins=ncols) one of three things can happen depending on choice of peak_method:
If peak_method is gaussian, the entire fit will fail. If the bin peak were set to nan instead of failing, the rest of the bins could be fit and the fully masked bins could be filtered out of the final fit to bin peaks for the trace.
if peak_method is max, the peak for the fully masked bin will always be 0. This biases the overall fit for the trace, and if they were instead set to nan they could be masked for the final fit.
if peak_method is centroid, the peak for the fully masked bin will always be the number of rows in the image because it is trying to interpolate between nans.
In all three of these cases, the final fit trace for these fully masked bins will have a final value using the all-bin fit, but the fit to the bin peaks itself is biased when there are 0s or 200s (for a 200x100 image for example). Additionally, the total failure for fully masked bins when using gaussian for the peak method can be avoided if that bin is just excluded from the final fit.
The text was updated successfully, but these errors were encountered:
When FitTrace encounters a fully masked bin (which can also be a fully masked column, if nbins=ncols) one of three things can happen depending on choice of
peak_method
:peak_method
is gaussian, the entire fit will fail. If the bin peak were set to nan instead of failing, the rest of the bins could be fit and the fully masked bins could be filtered out of the final fit to bin peaks for the trace.peak_method
is max, the peak for the fully masked bin will always be 0. This biases the overall fit for the trace, and if they were instead set to nan they could be masked for the final fit.peak_method
is centroid, the peak for the fully masked bin will always be the number of rows in the image because it is trying to interpolate between nans.In all three of these cases, the final fit trace for these fully masked bins will have a final value using the all-bin fit, but the fit to the bin peaks itself is biased when there are 0s or 200s (for a 200x100 image for example). Additionally, the total failure for fully masked bins when using gaussian for the peak method can be avoided if that bin is just excluded from the final fit.
The text was updated successfully, but these errors were encountered: