this is for holding javascript data
Antonino Ingargiola edited Fitting.tex
over 9 years ago
Commit id: 461547be668a547c3bb6afab680af2517980de1e
deletions | additions
diff --git a/Fitting.tex b/Fitting.tex
index b37fa4a..5490fc3 100644
--- a/Fitting.tex
+++ b/Fitting.tex
...
In general a model can be automatically built from any function. Before fitting all the model parameters need to have assigned an initial value and (optional) some constrains. A series of functions starting with \verb|factory| in \verb|mfit| return pre-initialized models (for E and S histogram fitting) for commonly used functions, for example 1 or 2 gassian peaks with or without "bridge" function.
For example, to fit the E histogram of bursts in \verb|ds|
with two Gaussian peaks we execute:
\begin{verbatim}
bext.bursts_fitter(ds, 'E', binwidth=0.03, model=mfit.factory_two_gaussians())