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

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: 1.1 KB
Line
1#if !defined(schulz_h)
2#define schulz_h
3#include "parameters.hh"
4
5/** Structure definition for Schulz parameters.
6 * The Schulz is normalized to the 'scale' parameter.
7 *
8 * f(x)=scale * math.pow(z+1, z+1)*math.pow((R), z)*
9 *                                      math.exp(-R*(z+1))/(center*gamma(z+1)
10 *              z= math.pow[(1/(sigma/center),2]-1
11 *              R= x/center
12 *
13 * [PYTHONCLASS] = Schulz
14 * [DESCRIPTION] = <text> f(x)=scale * math.pow(z+1, z+1)*math.pow((R), z)*
15                                        math.exp(-R*(z+1))/(center*gamma(z+1)
16                            z= math.pow[(1/(sigma/center),2]-1
17                                        R= x/center</text>
18 */
19
20class Schulz{
21public:
22  /// Scale factor
23  //  [DEFAULT]=scale=1.0
24  Parameter scale;
25  /// Standard deviation
26  //  [DEFAULT]=sigma=1
27  Parameter sigma;
28  /// Center of the Schulz distribution
29  //  [DEFAULT]=center=0.0
30  Parameter center;
31
32  // Constructor
33  Schulz();
34
35  // Operators to get I(Q)
36  double operator()(double q);
37  double operator()(double qx, double qy);
38  double calculate_ER();
39  double calculate_VR();
40  double evaluate_rphi(double q, double phi);
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.