source: sasview/sansmodels/src/sans/models/c_extensions/gaussian.h @ 922b0d1

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 922b0d1 was ae3ce4e, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

Moving sansmodels to trunk

  • Property mode set to 100644
File size: 837 bytes
Line 
1#if !defined(gaussian_h)
2#define gaussian_h
3
4/** Structure definition for Gaussian parameters.
5 * The Gaussian is normalized to the 'scale' parameter.
6 * 
7 * f(x)=scale * 1/(sigma^2*2pi)e^(-(x-mu)^2/2sigma^2)
8 *
9 * [PYTHONCLASS] = Gaussian
10 */
11typedef struct {
12    /// Scale factor
13    //  [DEFAULT]=scale=1.0
14    double scale;
15    /// Standard deviation
16    //  [DEFAULT]=sigma=1
17    double sigma;
18    /// Center of the Gaussian distribution
19    //  [DEFAULT]=center=0.0
20    double center;
21} GaussianParameters;
22
23/// 1D scattering function
24double gaussian_analytical_1D(GaussianParameters *pars, double x);
25
26/// 2D scattering function
27double gaussian_analytical_2D(GaussianParameters *pars, double x, double phi);
28double gaussian_analytical_2DXY(GaussianParameters *pars, double x, double y);
29
30#endif
Note: See TracBrowser for help on using the repository browser.