source: sasview/src/sas/models/include/logNormal.h @ 79492222

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 79492222 was 79492222, checked in by krzywon, 8 years ago

Changed the file and folder names to remove all SANS references.

  • 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
14class LogNormal{
15public:
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.