Changeset 4666660 in sasview for src/sas/perspectives
- Timestamp:
- May 17, 2015 5:55:07 PM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 96423f8
- Parents:
- 1fda506
- Location:
- src/sas/perspectives/fitting/media
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/media/fitting.rst
rf256d9b r4666660 1 .. _Fitting_Documentation: 2 1 3 Fitting Documentation 2 4 ===================== -
src/sas/perspectives/fitting/media/fitting_help.rst
r1fda506 r4666660 239 239 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 240 240 241 .. _Fitting_Options: 242 241 243 Fitting Options 242 244 --------------- … … 255 257 256 258 These optimisers form the *Bumps* package written by P Kienzle. For more information 257 on each optimiser, see the :ref:`Fitting 259 on each optimiser, see the :ref:`Fitting_Documentation`. 258 260 259 261 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ … … 291 293 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 292 294 295 .. _Status_bar: 296 293 297 Status Bar & Console 294 298 -------------------- … … 307 311 --------------- 308 312 309 One of two fit-engines can be chosen from the Fitting menu bar. The Simple Fit- 310 engine uses Scipy's leasqr and the Complex Fit-Engine is a custom optimizer 311 that provides a better chance to find the global minimum of the |chi| 2 but that 312 requires longer computation time. In order to set a data to a control panel 313 (FitPage), see the "DataLoader Help". Once a data set to the FiPage, select a 314 model from the combo box. The default parameters of the model will be display. 315 Set initial parameters if need. Check and uncheck parameters to fit/fix. Click 316 the *'Fit'* button. When the fitting is finished, the resultant parameter 317 values will be displayed with the errors. If a error is missing, it generally 318 means that the corresponding parameter is not very depending on the model. The 319 chisq/Npt_fit and the plot associated with the fit operation will be also 320 updated. 313 *NB: Before proceeding, ensure that the Single Mode radio button at the bottom of* 314 *the Data Explorer is checked (see the section* :ref:`Loading_data` *).* 315 316 When data is sent to the fitting perspective it is plotted in a graph window as 317 markers. 318 319 If a graph does not appear, or a graph window appears but is empty, then the data 320 has not loaded correctly. Check to see if there is a message in the :ref:`Status_Bar` 321 or in the *Console* window. 322 323 Assuming the data has loaded correctly, when a model is selected a green model 324 calculation (or what SasView calls a 'Theory') line will appear in the earlier graph 325 window, and a second graph window will appear displaying the residuals (the 326 difference between the experimental data and the theory) at the same X-data values. 327 328 The objective of model-fitting is to find a *physically-plausible* model, and set 329 of model parameters, that generate a theory that reproduces the experimental data 330 and gives residual values as close to zero as possible. 331 332 Change the default values of the model parameters by hand until the theory line 333 starts to represent the experimental data. Then uncheck the tick boxes alongside 334 all parameters *except* the 'background' and the 'scale'. Click the *Fit* button. 335 SasView will optimise the values of the 'background' and 'scale' and also display 336 the corresponding uncertainties on the optimised values. 337 338 *NB: If no uncertainty is shown it generally means that the model is not very* 339 *dependent on the corresponding parameter (or that one or more parameters are* 340 *'correlated').* 341 342 In the bottom left corner of the *Fit Page* is a box displaying the normalised value 343 of the statistical |chi|\ :sup:`2` parameter returned by the optimiser. 344 345 Now check the box for another model parameter and click *Fit* again. Repeat this 346 process until most or all parameters are checked and have been optimised. As the 347 fit of the theory to the experimental data improves the value of 'chi2/Npts' will 348 decrease. A good model fit should easily produce values of 'chi2/Npts' that are 349 close to zero, and certainly <100. 350 351 SasView has a number of different optimisers (see the section :ref:`Fitting_Options`). 352 The DREAM optimiser is the most sophisticated, but may not necessarily be the best 353 option for fitting simple models. If uncertain, try the Levenberg-Marquardt optimiser 354 initially. 321 355 322 356 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
Note: See TracChangeset
for help on using the changeset viewer.