<commit_before>.. sm_help.rst

.. This is a port of the original SasView html help file to ReSTructured text
.. by <NAME>, ISIS, during SasView CodeCamp-III in Feb 2015.

.. |inlineimage004| image:: sm_image004.gif
.. |inlineimage005| image:: sm_image005.gif
.. |inlineimage008| image:: sm_image008.gif
.. |inlineimage009| image:: sm_image009.gif
.. |inlineimage010| image:: sm_image010.gif
.. |inlineimage011| image:: sm_image011.gif
.. |inlineimage012| image:: sm_image012.gif
.. |inlineimage018| image:: sm_image018.gif
.. |inlineimage019| image:: sm_image019.gif


.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Smearing Functions
==================

Sometimes it will be necessary to correct reduced experimental data for the
physical effects of the instrumental geometry in use. This process is called
*desmearing*. However, calculated/simulated data - which by definition will be
perfect/exact - can be *smeared* to make it more representative of what might
actually be measured experimentally.

SasView provides the following three smearing algorithms:

*  *Slit Smearing*
*  *Pinhole Smearing*
*  *2D Smearing*

.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Slit Smearing
-------------

**This type of smearing is normally only encountered with data from X-ray Kratky**
**cameras or X-ray/neutron Bonse-Hart USAXS/USANS instruments.**

The slit-smeared scattering intensity is defined by

.. image:: sm_image002.gif

where *Norm* is given by

.. image:: sm_image003.gif

**[Equation 1]**

The functions |inlineimage004| and |inlineimage005|
refer to the slit width weighting function and the slit height weighting 
determined at the given *q* point, respectively. It is assumed that the weighting
function is described by a rectangular function, such that

.. image:: sm_image006.gif

**[Equation 2]**

and

.. image:: sm_image007.gif<commit_msg>Changes to smearing help at /sasview/src/sas/sasgui/perspectives/fitting/media/sm_help.rst<commit_after>.. sm_help.rst

.. This is a port of the original SasView html help file to ReSTructured text
.. by <NAME>, ISIS, during SasView CodeCamp-III in Feb 2015.

.. |inlineimage004| image:: sm_image004.gif
.. |inlineimage005| image:: sm_image005.gif
.. |inlineimage008| image:: sm_image008.gif
.. |inlineimage009| image:: sm_image009.gif
.. |inlineimage010| image:: sm_image010.gif
.. |inlineimage011| image:: sm_image011.gif
.. |inlineimage012| image:: sm_image012.gif
.. |inlineimage018| image:: sm_image018.gif
.. |inlineimage019| image:: sm_image019.gif


.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Smearing Functions
==================

Sometimes the instrumental geometry used to acquire the experimental data has 
an impact on the clarity of features in the reduced scattering curve. For 
example, peaks or fringes might be slightly broadened. This is known as 
*Q resolution smearing*. To compensate for this effect one can either try and 
remove the resolution contribution - a process called *desmearing* - or add the 
resolution contribution into a model calculation/simulation (which by definition 
will be exact) to make it more representative of what has been measured 
experimentally - a process called *smearing*. SasView will do the latter.

Both smearing and desmearing rely on functions to describe the resolution 
effect. SasView provides three smearing algorithms:

*  *Slit Smearing*
*  *Pinhole Smearing*
*  *2D Smearing*

SasView also has an option to use Q resolution data (estimated at the time of 
data reduction) supplied in a reduced data file: the *Use dQ data* radio button.

.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

dQ Smearing
-----------
 
If this option is checked, SasView will assume that the supplied dQ values 
represent the standard deviations of Gaussian functions.

.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

Slit Smearing
-------------

**This type of smearing is normally only encountered with data from X-ray Kratky**
**cameras or X-ray/neutron Bonse-Hart USAXS/USANS instruments.**

The slit-smeared scattering intensity is defined by

.. image:: sm_image002.gif

where *Norm* is given by

.. image:: sm_image003.gif

**[Equation 1]**

The functions |inlineimage004| and |inlineimage005|
refer to the slit width weighting function and the slit height weighting 
determined at the given *q* point, respectively. It is assumed that the weighting
function is described by a rectangular function, such that

.. image:: sm_image006.gif

**[Equation 2]**

and

.. image:: sm_image007.gif
{'fraction_non_alphanumeric': 0.09100642398286937, 'fraction_numerical': 0.033832976445396144, 'mean_word_length': 4.710268948655257, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 5, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '251395', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1418, 'n_words': 515}