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

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 c25f1fa was 59b9b675, checked in by Jae Cho <jhjcho@…>, 14 years ago

1) reverting diperser(used only in test) files for unittest. 2)changed the sigma of polydispersion to ratio for length parameters. 3) update an unittest

  • 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.