Changeset 98b30b4 in sasview for src/sas/perspectives/fitting/media


Ignore:
Timestamp:
Feb 17, 2015 8:35:07 AM (9 years ago)
Author:
smk78
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:
3702c12
Parents:
a37b4e6
Message:

Dupilicate links resolved

File:
1 edited

Legend:

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

    rec392464 r98b30b4  
    1010.. |phi| unicode:: U+03C6 
    1111.. |theta| unicode:: U+03B8 
     12.. |chi| unicode:: U+03C7 
     13 
     14.. |inlineimage004| image:: sm_image004.gif 
     15.. |inlineimage005| image:: sm_image005.gif 
     16.. |inlineimage008| image:: sm_image008.gif 
     17.. |inlineimage009| image:: sm_image009.gif 
     18.. |inlineimage010| image:: sm_image010.gif 
     19.. |inlineimage011| image:: sm_image011.gif 
     20.. |inlineimage012| image:: sm_image012.gif 
     21.. |inlineimage018| image:: sm_image018.gif 
     22.. |inlineimage019| image:: sm_image019.gif 
     23 
    1224 
    1325Fitting Perspective 
     
    6173One of two fit-engines can be chosen from the Fitting menu bar. The Simple Fit- 
    6274engine uses Scipy's leasqr and the Complex Fit-Engine is a custom optimizer  
    63 that provides a better chance to find the global minimum of the chi2 but that  
     75that provides a better chance to find the global minimum of the |chi| 2 but that 
    6476requires longer computation time. In order to set a data to a control panel  
    6577(FitPage), see the "DataLoader Help". Once a data set to the FiPage, select a  
     
    532544 
    533545We use only these array values in the computation, therefore the mean value  
    534 given in the control panel, for example ‘radius = 60’, will be ignored. 
     546given in the control panel, for example ‘radius = 60’, will be ignored. 
    535547 
    536548.. _Gaussian_Distribution: 
     
    560572normalization factor which will be determined during the numerical calculation.  
    561573The median value is the value given in the size parameter in the control panel,  
    562 for example, “radius = 60”. 
     574for example, “radius = 60â€ᅵ. 
    563575 
    564576The PD (polydispersity) is given by /sigma/ 
     
    588600which is determined during the numerical calculation. 
    589601 
    590 The z = 1/p2– 1. 
     602The z = 1/p2– 1. 
    591603 
    592604The PD (polydispersity) is 
     
    628640Equation 1 
    629641 
    630 The functions .. image:: sm_image004.gif and .. image:: sm_image005.gif 
     642The functions |inlineimage004| and |inlineimage005| 
    631643refer to the slit width weighting function and the slit height weighting  
    632644determined at the q point, respectively. Here, we assumes that the weighting  
     
    643655Equation 3 
    644656 
    645 so that .. image:: sm_image008.gif .. image:: sm_image009.gif for 
    646 .. image:: sm_image010.gif and u. 
    647  
    648 The .. image:: sm_image011.gif and .. image:: sm_image012.gif stand for 
     657so that |inlineimage008| |inlineimage009| for |inlineimage010| and u. 
     658 
     659The |inlineimage011| and |inlineimage012| stand for 
    649660the slit height (FWHM/2) and the slit width (FWHM/2) in the q space. Now the  
    650661integral of Equation 1 is simplified to 
     
    660671------ 
    661672 
    662 For .. image:: sm_image012.gif = 0 and .. image:: sm_image011.gif =  
    663 constant. 
     673For |inlineimage012| = 0 and |inlineimage011| = constant. 
    664674 
    665675.. image:: sm_image016.gif 
    666676 
    667677For discrete q values, at the q values from the data points and at the q  
    668 values extended up to qN= qi + .. image:: sm_image011.gif the smeared  
     678values extended up to qN= qi + |inlineimage011| the smeared  
    669679intensity can be calculated approximately 
    670680 
     
    673683Equation 5 
    674684 
    675 .. image:: sm_image018.gif = 0 for *Is* in *j* < *i* or *j* > N-1*. 
     685|inlineimage018| = 0 for *Is* in *j* < *i* or *j* > N-1*. 
    676686 
    677687Case 2 
    678688------ 
    679689 
    680 For .. image:: sm_image012.gif = constant and  
    681 .. image:: sm_image011.gif = 0. 
     690For |inlineimage012| = constant and |inlineimage011| = 0. 
    682691 
    683692Similarly to Case 1, we get 
    684693 
    685 .. image:: sm_image019.gif for qp= qi- .. image:: sm_image012.gif 
    686  
    687 and qN= qi+ .. image:: sm_image012.gif. .. image:: sm_image018.gif = 0 
     694|inlineimage019| for qp= qi- |inlineimage012| and qN= qi+ |inlineimage012|. |inlineimage018| = 0 
    688695for *Is* in *j* < *p* or *j* > *N-1*. 
    689696 
     
    691698------ 
    692699 
    693 For .. image:: sm_image011.gif = constant and  
    694 .. image:: sm_image011.gif = constant. 
     700For |inlineimage011| = constant and  
     701|inlineimage011| = constant. 
    695702 
    696703In this case, the best way is to perform the integration, Equation 1,  
     
    707714Equation 7 
    708715 
    709 for qp= qi- .. image:: sm_image012.gif and 
    710 qN= qi+ .. image:: sm_image012.gif. .. image:: sm_image018.gif = 0 for 
     716for qp= qi- |inlineimage012| and 
     717qN= qi+ |inlineimage012|. |inlineimage018| = 0 for 
    711718*Is* in *j* < *p* or *j* > *N-1*. 
    712719 
     
    745752In Equation 9, x0 = qcos/theta/ and y0 = qsin/theta/, and the primed axes  
    746753are in the coordinate rotated by an angle /theta/ around the z-axis (below)  
    747 so that x’0= x0cos/theta/+y0sin/theta/ and y’0= -x0sin/theta/+y0cos/theta/. 
     754so that x’0= x0cos/theta/+y0sin/theta/ and y’0= -x0sin/theta/+y0cos/theta/. 
    748755 
    749756Note that the rotation angle is zero for x-y symmetric elliptical Gaussian  
     
    754761Now we consider a numerical integration where each bins in /theta/ and R are  
    755762*evenly* (this is to simplify the equation below) distributed by /delta//theta/  
    756 and /delta/R, respectively, and it is assumed that I(x’, y’) is constant  
     763and /delta/R, respectively, and it is assumed that I(x’, y’) is constant  
    757764within the bins which in turn becomes 
    758765 
     
    762769 
    763770Since we have found the weighting factor on each bin points, it is convenient  
    764 to transform x’-y’ back to x-y coordinate (rotating it by -/theta/ around z  
     771to transform x’-y’ back to x-y coordinate (rotating it by -/theta/ around z  
    765772axis). Then, for the polar symmetric smear 
    766773 
     
    940947If this operation is successful, the new ftol value will be displayed in the  
    941948info line at the bottom of the SV window.Note that increasing the ftol value  
    942 may cause for the fitting to terminate with higher chisq. 
     949may cause for the fitting to terminate with higher |chi| sq. 
    943950 
    944951.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
Note: See TracChangeset for help on using the changeset viewer.