CompoundSpectralModel#

class gammapy.modeling.models.CompoundSpectralModel[source]#

Bases: CovarianceMixin, SpectralModel

Arithmetic combination of two spectral models.

For more information see Compound spectral model.

Attributes Summary

Methods Summary

__call__(energy)

Call self as a function.

evaluate(energy, *args)

from_dict(data, **kwargs)

to_dict([full_output])

Create dictionary for YAML serialisation.

Attributes Documentation

default_parameters = <gammapy.modeling.parameter.Parameters object>#
parameters#
parameters_unique_names#
tag = ['CompoundSpectralModel', 'compound']#

Methods Documentation

__call__(energy)[source]#

Call self as a function.

evaluate(energy, *args)[source]#
classmethod from_dict(data, **kwargs)[source]#
to_dict(full_output=False)[source]#

Create dictionary for YAML serialisation.

__init__(model1, model2, operator)[source]#
classmethod __new__(*args, **kwargs)#