source: sasview/sansmodels/prototypes/src/testsphere.h @ 9055b06

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 9055b06 was 7df1a50, checked in by Jae Cho <jhjcho@…>, 13 years ago

moving a file

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#if !defined(testsphere_h)
2#define testsphere_h
3
4#include "modelCalculations.h"
5
6/** Structure definition for sphere parameters
7 * [PYTHONCLASS] = TestSphere2
8 * */
9typedef struct {
10    /// Scale factor
11    //  [DEFAULT]=scale=1.0
12    double scale;
13    /// Radius of the sphere
14    //  [DEFAULT]=radius=20.0
15    double radius;
16    /// Maximum Q (for numerical calculations)
17    //  [DEFAULT]=qmax=0.1
18    double qmax;
19    // Variables for numerical calculations
20    CalcParameters calcPars;
21   
22} TestSphereParameters;
23
24/// 1D scattering function
25double testsphere_analytical_1D(TestSphereParameters *pars, double q);
26
27/// 2D scattering function
28double testsphere_analytical_2D(TestSphereParameters *pars, double q, double phi);
29
30/// 1D scattering function
31double testsphere_numerical_1D(TestSphereParameters *pars, int *array, double q);
32
33/// 2D scattering function
34double testsphere_numerical_2D(TestSphereParameters *pars, int *array, double q, double phi);
35
36int testsphere_generatePoints(SpacePoint * points, int n, double radius);
37
38#endif
Note: See TracBrowser for help on using the repository browser.