source: sasview/sansmodels/src/sans/models/c_extensions/logNormal.h @ 2e38ebb

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 2e38ebb was eba9885, checked in by Gervaise Alina <gervyh@…>, 15 years ago

code for evalDistribution

  • Property mode set to 100644
File size: 978 bytes
Line 
1#if !defined(logNormal_h)
2#define logNormal_h
3
4/** Structure definition for Gaussian parameters.
5 * The Log normal is normalized to the 'scale' parameter.
6 * 
7 * f(x)=scale * 1/(sigma*math.sqrt(2pi))e^(-1/2*((math.log(x)-mu)/sigma)^2)
8 *
9 * [PYTHONCLASS] = LogNormal
10 * [DESCRIPTION] = <text>f(x)=scale * 1/(sigma*math.sqrt(2pi))e^(-1/2*((math.log(x)-mu)/sigma)^2)</text>
11 */
12typedef 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 Log Normal distribution
20    //  [DEFAULT]=center=0.0
21    double center;
22} LogNormalParameters;
23
24/// 1D scattering function
25double logNormal_analytical_1D(LogNormalParameters *pars, double x);
26
27/// 2D scattering function
28double logNormal_analytical_2D(LogNormalParameters *pars, double x, double phi);
29double logNormal_analytical_2DXY(LogNormalParameters *pars, double x, double y);
30
31#endif
Note: See TracBrowser for help on using the repository browser.