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 fca6936 was
fca6936,
checked in by Mathieu Doucet <doucetm@…>, 16 years ago
|
First cut at better polydisp and averaging implementation for sans models.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | This software was developed by the University of Tennessee as part of the |
---|
3 | Distributed Data Analysis of Neutron Scattering Experiments (DANSE) |
---|
4 | project funded by the US National Science Foundation. |
---|
5 | |
---|
6 | If you use DANSE applications to do scientific research that leads to |
---|
7 | publication, we ask that you acknowledge the use of the software with the |
---|
8 | following sentence: |
---|
9 | |
---|
10 | "This work benefited from DANSE software developed under NSF award DMR-0520547." |
---|
11 | |
---|
12 | copyright 2008, University of Tennessee |
---|
13 | */ |
---|
14 | #ifndef MODEL_CLASS_H |
---|
15 | #define MODEL_CLASS_H |
---|
16 | |
---|
17 | #include <vector> |
---|
18 | #include "parameters.hh" |
---|
19 | extern "C" { |
---|
20 | #include "cylinder.h" |
---|
21 | } |
---|
22 | |
---|
23 | using namespace std; |
---|
24 | |
---|
25 | class Cylinder{ |
---|
26 | |
---|
27 | public: |
---|
28 | // Model parameters |
---|
29 | Parameter radius; |
---|
30 | Parameter scale; |
---|
31 | Parameter length; |
---|
32 | Parameter contrast; |
---|
33 | Parameter background; |
---|
34 | Parameter cyl_theta; |
---|
35 | Parameter cyl_phi; |
---|
36 | // TODO: replace this by an array of parameters |
---|
37 | |
---|
38 | // Constructor |
---|
39 | Cylinder(); |
---|
40 | |
---|
41 | // Operators to get I(Q) |
---|
42 | double operator()(double q); |
---|
43 | double operator()(double qx, double qy); |
---|
44 | double evaluate_rphi(double q, double phi); |
---|
45 | }; |
---|
46 | |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.