SpectrumEnergyGroup¶
-
class
gammapy.spectrum.SpectrumEnergyGroup(energy_group_idx, bin_idx_min, bin_idx_max, bin_type, energy_min, energy_max)[source]¶ Bases:
objectSpectrum energy group.
Represents a consecutive range of bin indices (both ends inclusive).
Attributes Summary
bin_idx_arrayNumpy array of bin indices in the group. bin_tableCreate Tablewith bins in the group.fieldsList of data members of this class. valid_bin_typesValid values for bin_typesattribute.Methods Summary
contains_energy(energy)Does this group contain a given energy? from_dict(data)to_dict()Attributes Documentation
-
bin_idx_array¶ Numpy array of bin indices in the group.
-
fields= ['energy_group_idx', 'bin_idx_min', 'bin_idx_max', 'bin_type', 'energy_min', 'energy_max']¶ List of data members of this class.
-
valid_bin_types= ['normal', 'underflow', 'overflow']¶ Valid values for
bin_typesattribute.
Methods Documentation
-