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 87f51eb was
59b9b675,
checked in by Jae Cho <jhjcho@…>, 14 years ago
|
1) reverting diperser(used only in test) files for unittest. 2)changed the sigma of polydispersion to ratio for length parameters. 3) update an unittest
|
-
Property mode set to
100644
|
File size:
921 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 | * [DESCRIPTION] = <text>f(x)=scale * 1/(sigma^2*2pi)e^(-(x-mu)^2/2sigma^2)</text> |
---|
11 | */ |
---|
12 | typedef struct { |
---|
13 | /// Scale factor |
---|
14 | // [DEFAULT]=scale=1.0 |
---|
15 | double scale; |
---|
16 | /// Standard deviation |
---|
17 | // [DEFAULT]=sigma=1 |
---|
18 | double sigma; |
---|
19 | /// Center of the Gaussian distribution |
---|
20 | // [DEFAULT]=center=0.0 |
---|
21 | double center; |
---|
22 | } GaussianParameters; |
---|
23 | |
---|
24 | /// 1D scattering function |
---|
25 | double gaussian_analytical_1D(GaussianParameters *pars, double x); |
---|
26 | |
---|
27 | /// 2D scattering function |
---|
28 | double gaussian_analytical_2D(GaussianParameters *pars, double x, double phi); |
---|
29 | double gaussian_analytical_2DXY(GaussianParameters *pars, double x, double y); |
---|
30 | |
---|
31 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.