SpectrumEnergyGroup¶
-
class
gammapy.spectrum.
SpectrumEnergyGroup
(energy_group_idx, bin_idx_min, bin_idx_max, bin_type, energy_min, energy_max)[source]¶ Bases:
object
Spectrum energy group.
Represents a consecutive range of bin indices (both ends inclusive).
Attributes Summary
bin_idx_array
Numpy array of bin indices in the group. bin_table
Create Table
with bins in the group.fields
List of data members of this class. valid_bin_types
Valid values for bin_types
attribute.Methods Summary
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_types
attribute.
Methods Documentation
-