source: sasview/sansmodels/src/include/logNormal.h @ fd080830

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 fd080830 was 101065a, checked in by Mathieu Doucet <doucetm@…>, 13 years ago

keep only header files in c_extensions and rename it 'include'

  • Property mode set to 100644
File size: 904 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 evaluate_rphi(double q, double phi);
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.