Hello everyone,
hopefully this problem has a trivial solution:
Is there a way to retrieve the mathematical model from a composite model?
For example, let's assume I fitted some spectroscopic data with a composite model
consisting of a linear background (LinearModel) and several gaussian peaks (GaussianModel).
Is it then possible to somehow return the model, not as an lmfit.Model, but as a "real" mathematical
model, i.e. model = a*x +b + amplitude*Exp(-(x-mu)^2/ sigma^2) + ...
where the parameters are replaced by the fitted parameters?
Best regards and thanks for the help,
Felix