AbsorbedSpectralModel

class gammapy.spectrum.models.AbsorbedSpectralModel(spectral_model, absorption, parameter, parameter_name='redshift')[source]

Bases: gammapy.spectrum.models.SpectralModel

Spectral model with EBL absorption.

Parameters:

spectral_model : SpectralModel

Spectral model.

absorption : Absorption

Absorption model.

parameter : float

parameter value for absorption model

parameter_name : str, optional

parameter name

Methods Summary

evaluate(energy, **kwargs)

Methods Documentation

evaluate(energy, **kwargs)[source]