wcxve / elisa

Efficient library for spectral analysis in high-energy astrophysics.
https://astro-elisa.readthedocs.io
GNU General Public License v3.0
10 stars 3 forks source link

Refactor data simulation API #89

Open wcxve opened 3 months ago

wcxve commented 3 months ago

A general simulation API should be provided, and used in CompiledModel.simulate and FitHelper's simulation functions.

Negative background data can be produced from normal distribution, which should be set to zeros when the total spectrum data follows Poisson distribution.