PiecewiseNormSpectralModel#
- class gammapy.modeling.models.PiecewiseNormSpectralModel[source]#
Bases:
SpectralModel
Piecewise spectral correction with a free normalization at each fixed energy nodes.
For more information see Piecewise norm spectral model.
- Parameters:
- energy
Quantity
Array of energies at which the model values are given (nodes).
- norms
ndarray
or list ofgammapy.modeling.Parameter
Array with the initial norms of the model at energies
energy
. Normalisation parameters are created for each value. Default is one at each node.- interpstr
Interpolation scaling in {“log”, “lin”}. Default is “log”.
- energy
Attributes Summary
Energy nodes.
Norm values.
Methods Summary
__call__
(energy)Call self as a function.
evaluate
(energy, *norms)from_dict
(data, **kwargs)Create model from dictionary.
from_parameters
(parameters, **kwargs)Create model from parameters.
to_dict
([full_output])Create dictionary for YAML serialisation.
Attributes Documentation
- default_parameters = <gammapy.modeling.parameter.Parameters object>#
- energy#
Energy nodes.
- norms#
Norm values.
- tag = ['PiecewiseNormSpectralModel', 'piecewise-norm']#
Methods Documentation
- classmethod __new__(*args, **kwargs)#