.. _fitting_luminescence: Fitting luminescence data ************************* LumiSpy is compatible with :external+hyperspy:ref:`HyperSpy model fitting `. It can fit using both :external+hyperspy:ref:`uniform and and non-uniform axes ` (e.g. energy scale). A general introduction can be found in the :external+hyperspy:ref:`HyperSpy user guide `. A detailed example is given in the ``Fitting_tutorial`` in the `HyperSpy demos repository `_. See also the `LumiSpy demo notebooks `_ for examples of data fitting. .. Note:: The :ref:`jacobian` may affect the shape, in particular of broader peaks. It is therefore highly recommended to convert luminescence spectra from wavelength to the :ref:`energy axis ` prior to any fitting to obtain the true emission energy. See e.g. [Wang]_ and [Mooney]_. TODO: Show how to extract the *modeled signal* with all/one component. .. _fitting_variance: Signal variance (noise) ======================= TODO: Documentation on variance handling in the context of fitting, in particular using :external:meth:`~hyperspy.api.signals.BaseSignal.estimate_poissonian_noise_variance` For a detailed discussion, see [Tappy]_