Notebook .. _ebl_model:
EBL models are implemented using a 2D interpolation where the x and y axes represent the redshift and the frequency, and the z axes represents the value of :math:`e^{-\tau}` Included models are - Franceschini et al. (2008) [Franceschini2008]_ - Finke et al. (2010) [Finke2010]_ - Dominguez et al. (2011) [Dominguez2011]_
To apply the EBL model to a Jet model we need to define a composite model, read the section :ref:`composite_models` for more information regarding the composite models. We start by combining a Jet model with the EBL absorption model. Please, keep in mind that the EBL absorption model is a multiplicative model, i.e. it has to multiplied and not added to the Jet model.
As second step, we define the EBL model, and we use in this case the `Franceschini_2008` model
As third step, we add the components models to the the :class:`.FitModel` class, using the :class:`.FitModel.add_component()` method
.. important:: Starting from version 1.2.0 we have changed the syntax of ``link_par``, please update your scripts
As you can see, now the parameter `z_cosm` in `Franceschini_2008` is the `linked` paramter (flagge by the L in parenthesis), and the one belonging to the `jet_flaring` component is the `master` one (flagged by the M in parenthesis).
.. bibliography:: references.bib