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 5559171 was
6319646,
checked in by Jae Cho <jhjcho@…>, 13 years ago
|
new includes for scale fix for P*S
|
-
Property mode set to
100644
|
File size:
928 bytes
|
Line | |
---|
1 | #if !defined(logNormal_h) |
---|
2 | #define logNormal_h |
---|
3 | #include "parameters.hh" |
---|
4 | |
---|
5 | /** Structure definition for Gaussian parameters. |
---|
6 | * The Log normal is normalized to the 'scale' parameter. |
---|
7 | * |
---|
8 | * f(x)=scale * 1/(sigma*math.sqrt(2pi))e^(-1/2*((math.log(x)-mu)/sigma)^2) |
---|
9 | * |
---|
10 | * [PYTHONCLASS] = LogNormal |
---|
11 | * [DESCRIPTION] = <text>f(x)=scale * 1/(sigma*math.sqrt(2pi))e^(-1/2*((math.log(x)-mu)/sigma)^2)</text> |
---|
12 | */ |
---|
13 | |
---|
14 | class LogNormal{ |
---|
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 Log Normal distribution |
---|
23 | // [DEFAULT]=center=0.0 |
---|
24 | Parameter center; |
---|
25 | |
---|
26 | // Constructor |
---|
27 | LogNormal(); |
---|
28 | |
---|
29 | // Operators to get I(Q) |
---|
30 | double operator()(double q); |
---|
31 | double operator()(double qx, double qy); |
---|
32 | double calculate_ER(); |
---|
33 | double calculate_VR(); |
---|
34 | double evaluate_rphi(double q, double phi); |
---|
35 | }; |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.