Changes in / [ae047f2:5276eeb] in sasview


Ignore:
Location:
src/sas/perspectives
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/media/fitting_help.rst

    rb5846a10 r8570246  
    132132.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
    133133 
    134 .. _Adding_your_own_models: 
    135  
    136134Adding your own models 
    137135---------------------- 
     
    316314*the Data Explorer is checked (see the section* :ref:`Loading_data` *).* 
    317315 
    318 This mode fits one data set. 
    319  
    320316When data is sent to the fitting perspective it is plotted in a graph window as 
    321317markers. 
     
    363359--------------------- 
    364360 
    365 *NB: Before proceeding, ensure that the Single Mode radio button at the bottom of* 
    366 *the Data Explorer is checked (see the section* :ref:`Loading_data` *).* 
    367  
    368 This mode is an extension of the :ref:`Single Fit Mode` that fits two or more data  
    369 sets *to the same model* simultaneously. If necessary it is possible to constrain  
    370 fit parameters between data sets (eg, to fix a background level, or radius, etc). 
    371  
    372 If the data to be fit are in multiple files, load each file, then select each file 
    373 in the *Data Explorer*, and *Send To Fitting*. If multiple data sets are in one file, 
    374 load that file, *Unselect All Data*, select just those data sets to be fitted, and 
    375 *Send To Fitting*. Either way, the result should be that for *n* data sets you have 
    376 2*n* graphs (*n* of the data and model fit, and *n* of the resulting residuals). But 
    377 it may be helpful to minimise the residuals plots for clarity. 
    378  
    379 *NB: If you need to use a customized model, you must ensure that model is available* 
    380 *first (see* :ref:`Adding_your_own_models` *).* 
    381  
    382 Now go to each *FitPage* in turn and: 
    383  
    384   Select the required category and model; 
    385  
    386   Unselect all the model parameters; 
    387  
    388   Enter some starting guesses for the parameters; 
    389  
    390   Enter any parameter limits (recommended); 
    391  
    392   Select which parameters will refine (selecting all is generally a bad idea...); 
    393  
    394 When done, select *Constrained or Simultaneous Fit* under *Fitting* in the menu bar. 
    395  
    396 In the *Const & Simul Fit* page that appears, select which data sets are to be 
    397 simultaneously fitted (this will probably be all of them or you would not have loaded 
    398 them in the first place!). 
    399  
    400 To tie parameters between the data sets with constraints, check the 'yes' radio button 
    401 next to *Add Constraint?* in the *Fit Constraints* box. 
    402  
    403 *NB: You can only constrain parameters that are set to refine.* 
    404  
    405 When ready, click the *Fit* button on the *Const & Simul Fit* page, NOT the *Fit* 
    406 button on the individual *FitPage*'s. 
    407  
    408 Simultaneous Fits without Constraints 
    409 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
    410  
    411 The results of the model-fitting will be returned to each of the individual 
    412 *FitPage*'s. 
    413  
    414 Note that the chi2/Npts value returned is the SUM of the chi2/Npts of each fit. To 
    415 the chi2/Npts value for a specific *FitPage*, click the *Compute* button at the 
    416 bottom of that *FitPage* to recalculate. 
    417  
    418 Simultaneous Fits with Constraints 
    419 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
    420  
    421 Use the *Easy Setup* drop-down buttons in the *Const & Simul Fit* page to set 
    422 up constraints between *FitPage*'s. 
    423  
    424 Constraints will generally be of the form Mi Parameter1 = Mj.Parameter1, however 
    425 the text box after the '=' sign can be used to adjust this relationship; for 
    426 example Mi Parameter1 = scalar*Mj.Parameter1. A 'free-form' constraint box is 
    427 also provided. 
    428  
    429 Many constraints can be entered for a single fit. 
    430  
    431 The results of the model-fitting will be returned to each of the individual 
    432 *FitPage*'s. 
    433  
    434 Note that the chi2/Npts value returned is the SUM of the chi2/Npts of each fit. To 
    435 the chi2/Npts value for a specific *FitPage*, click the *Compute* button at the 
    436 bottom of that *FitPage* to recalculate. 
     361This fitting option enables to set a number of the constraints between the  
     362parameters of fitting(s). It requires one or more FitPages with a data and a  
     363model set for the fitting, and performs multiple fittings given by the  
     364FitPage(s). The Complex (ParkMC) FitEngine will be used automatically. 
     365 
     366Simultaneous Fit without Constraint 
     367 
     368Assuming some FitPages are already set up, check the checkboxes of the  
     369model_data rows to fit. And click the 'Fit' button. The results will return to  
     370each FitPages. 
     371 
     372Note that the chi2/Npts returned is the sum of the chi2/Npts of each fits. If  
     373one needs the chi2 value only for a page, click the 'Compute' button in the  
     374FitPage to recalculate. 
     375 
     376Simultaneous Fit with Constraint 
     377 
     378Enter constraint in the text control next to *constraint fit*  button.  
     379Constraint should be of type model1 parameter name = f(model2 parameter name)  
     380for example, M0.radius=2*M1.radius. Many constraints can be entered for a  
     381single fit. Each of them should be separated by a newline charater or ";"  
     382The easy setup can generate many constraint inputs easily when the selected  
     383two models are the same type. 
     384 
     385Note that the chi2/Npts returned is the sum of the chi2/Npts of each fits.  
     386If one needs the chi2 value only for one fit, click the 'Compute' button in  
     387the FitPage to recalculate. 
    437388 
    438389.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     
    440391Batch Fit Mode 
    441392-------------- 
    442  
    443 *NB: Before proceeding, ensure that the Batch Mode radio button at the bottom of* 
    444 *the Data Explorer is checked (see the section* :ref:`Loading_data` *).* 
    445393 
    446394Batch Fit 
Note: See TracChangeset for help on using the changeset viewer.