Closed joefowler closed 3 years ago
Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).
Actually, maybe the meaning of “background” should stay the way it is: as background counts per bin. I am trying to use the principle of least confusion here, and that might be what it demands.
Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).
LineModel objects rescale the "integral" parameter correctly
Rescaling accounts for both bin width and the dph_de factor. Fixes #202.
Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).
Removing milestone: v0.7 (automated comment)
Original report by Joseph Fowler (Bitbucket: joe_fowler, ).
When we use the Mass line fitters, the “amplitude” parameter is hard to interpret. It is basically the signal integral, but rescaled to be proportional to the bin width in eV.
This is dumb. If it’s like an integral, it ought to be the signal integral and not depend on bin widths.
Consider the following demo, in which we have 100,000 signal photons distributed as a Mn K-alpha shape (with energy resolution 5 eV) plus 500 background photons per eV. We then fit the data histogrammed with 1.00 eV bins (_left panel_), then with 0.50 eV bins (_right_). Notice that the amplitude is exactly 100,000±383 in the first case, but it’s 49,997±191 in the second. Also, the background counts are also given as per-bin numbers rather than per-eV numbers.
I’m pretty sure we should replace “ampl” with “integral” for better interpretability and to reduce confusion, so that both fits shown here would yield integral=100,000. I’m leaning to the idea that BG should also be per-eV, but on that point I am open to debate.
Code to generate this plot:
This is relevant to the new Voigt fitter imagined in #201.