SpectrumEnergyGroupMaker¶
-
class
gammapy.spectrum.SpectrumEnergyGroupMaker(obs)[source]¶ Bases:
objectEnergy bin groups for spectral analysis.
This class contains both methods that run algorithms that compute groupings as well as the results as data members and methods to debug and assess the results.
The input
obsis used read-only, to access the counts energy binning, as well as some other info that is used for energy bin grouping.Parameters: obs :
SpectrumObservationSpectrum observation
Attributes
obs ( SpectrumObservation) Spectrum observation datagroups ( SpectrumEnergyGroups) List of energy groupsMethods Summary
compute_groups_fixed(ebounds)Apply grouping for a given fixed energy binning. groups_from_obs()Compute energy groups with one group per energy bin. Methods Documentation