Notebook .. _composite_models:
Composite models allow to combine together different models, such as Jet, and templates, including additive or multiplicative models, and give to the user the possibility to define the functional form of the model composition using a very simple and intuitive form such as: .. code-block:: python 'jet1+jet2'*Franceschini_2008 that sums two jet models SEDs, and apply to both of them the `Franceschini_2008` EBL absorption. Building composite models it is very easy. Composite models are handled by the :class:`.FitModel` class, as shown by the following examples.
Second, we define the EBL model, and we use in this case the `Franceschini_2008` model ( read the section :ref:`ebl_model` for more info regarding the EBL models)
Now we add the components models to the the :class:`.FitModel` class, using the :class:`.FitModel.add_component()` method
.. note:: with the new implementation of composite model (`FitModel` class) to set parameters you have to specify the model component, this is different from versions<1.2.0