source: sasview/sansmodels/src/sans/models/c_extensions/schulz.h @ 2ca00c4

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

code for evalDistribution

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#if !defined(schulz_h)
2#define schulz_h
3
4/** Structure definition for Schulz parameters.
5 * The Schulz is normalized to the 'scale' parameter.
6 * 
7 * f(x)=scale * math.pow(z+1, z+1)*math.pow((R), z)*
8 *                                      math.exp(-R*(z+1))/(center*gamma(z+1)
9 *              z= math.pow[(1/(sigma/center),2]-1
10 *              R= x/center
11 *
12 * [PYTHONCLASS] = Schulz
13 * [DESCRIPTION] = <text> f(x)=scale * math.pow(z+1, z+1)*math.pow((R), z)*
14                                        math.exp(-R*(z+1))/(center*gamma(z+1)
15                            z= math.pow[(1/(sigma/center),2]-1
16                                        R= x/center</text>
17 */
18typedef struct {
19    /// Scale factor
20    //  [DEFAULT]=scale=1.0
21    double scale;
22    /// Standard deviation
23    //  [DEFAULT]=sigma=1
24    double sigma;
25    /// Center of the Schulz distribution
26    //  [DEFAULT]=center=0.0
27    double center;
28} SchulzParameters;
29
30/// 1D scattering function
31double schulz_analytical_1D(SchulzParameters *pars, double x);
32
33/// 2D scattering function
34double schulz_analytical_2D(SchulzParameters *pars, double x, double phi);
35double schulz_analytical_2DXY(SchulzParameters *pars, double x, double y);
36
37#endif
Note: See TracBrowser for help on using the repository browser.