fjebaker / SpectralFitting.jl

✨🛰 Fast and flexible spectral fitting in Julia.
https://fjebaker.github.io/SpectralFitting.jl
GNU General Public License v3.0
9 stars 5 forks source link

Single model, multiple data #132

Open fjebaker opened 1 month ago

fjebaker commented 1 month ago

There's often a need to fit a single model to several datasets, where only e.g. the normalisation is changing.

At the moment, the model is evaluated once for each dataset, but there's much room for improvement here: we need only evaluate the model once and can use different normalisations for each one. The caveat is; if the normalisation is being used in a convolution model, the effect is potentially non-linear, but in theory we have all the information to know that at compile time.

For now: