source: sasview/src/sas/models/include/dabmodel.h @ 1d115ef

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 1d115ef was f008ee2, checked in by butler, 9 years ago

fix details string (documentation) for DAB model (see ticket #400)to
include L3 term

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifndef DAB_MODEL_H
2#define DAB_MODEL_H
3
4#include "parameters.hh"
5
6/**
7        This software was developed by Institut Laue-Langevin as part of
8        Distributed Data Analysis of Neutron Scattering Experiments (DANSE).
9
10        Copyright 2012 Institut Laue-Langevin
11
12**/
13
14
15// definition for model parameters
16
17// [PYTHONCLASS] = DABModel
18// [DISP_PARAMS] = length, scale, background
19// [DESCRIPTION] = <text>DAB (Debye Anderson Brumberger) Model
20//    F(x) = scale * L^3/( 1 + (q*L)^2 )^2 + background
21//    L: the correlation length
22//     </text>
23// [FIXED] =
24// [ORIENTATION_PARAMS] =
25
26
27class DABModel {
28
29public:
30  // Model parameters
31
32  /// Correlation length [A]
33  // [DEFAULT]=length=50.0 [A]
34  Parameter length;
35
36  /// Scale factor
37  // [DEFAULT]=scale=1.0
38  Parameter scale;
39
40  /// Background [1/cm]
41  // [DEFAULT]=background=0 [1/cm]
42  Parameter background;
43
44  DABModel();
45
46    // Operators to get I(Q)
47  double operator()(double q);
48  double operator()(double qx, double qy);
49  double calculate_ER();
50  double calculate_VR();
51  double evaluate_rphi(double q, double phi);
52};
53
54
55#endif
56
Note: See TracBrowser for help on using the repository browser.