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 5f0be1f was
79492222,
checked in by krzywon, 10 years ago
|
Changed the file and folder names to remove all SANS references.
|
-
Property mode set to
100644
|
File size:
875 bytes
|
Rev | Line | |
---|
[503a972] | 1 | #if !defined(gaussian_h) |
---|
| 2 | #define gaussian_h |
---|
| 3 | #include "parameters.hh" |
---|
| 4 | |
---|
| 5 | /** Structure definition for Gaussian parameters. |
---|
| 6 | * The Gaussian is normalized to the 'scale' parameter. |
---|
[6319646] | 7 | * |
---|
[503a972] | 8 | * f(x)=scale * 1/(sigma^2*2pi)e^(-(x-mu)^2/2sigma^2) |
---|
[6319646] | 9 | * |
---|
[503a972] | 10 | * [PYTHONCLASS] = Gaussian |
---|
| 11 | * [DESCRIPTION] = <text>f(x)=scale * 1/(sigma^2*2pi)e^(-(x-mu)^2/2sigma^2)</text> |
---|
| 12 | */ |
---|
| 13 | |
---|
| 14 | class Gaussian{ |
---|
| 15 | public: |
---|
| 16 | /// Scale factor |
---|
| 17 | // [DEFAULT]=scale=1.0 |
---|
| 18 | Parameter scale; |
---|
| 19 | /// Standard deviation |
---|
| 20 | // [DEFAULT]=sigma=1 |
---|
| 21 | Parameter sigma; |
---|
| 22 | /// Center of the Gaussian distribution |
---|
| 23 | // [DEFAULT]=center=0.0 |
---|
| 24 | Parameter center; |
---|
| 25 | |
---|
| 26 | // Constructor |
---|
| 27 | Gaussian(); |
---|
| 28 | |
---|
| 29 | // Operators to get I(Q) |
---|
| 30 | double operator()(double q); |
---|
| 31 | double operator()(double qx, double qy); |
---|
| 32 | double calculate_ER(); |
---|
[6319646] | 33 | double calculate_VR(); |
---|
[503a972] | 34 | double evaluate_rphi(double q, double phi); |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.