source: sasview/pr_inversion/c_extensions/invertor.h @ eca05c8

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 eca05c8 was eca05c8, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

Added P(r) fit test

  • Property mode set to 100644
File size: 886 bytes
Line 
1#if !defined(invertor_h)
2#define invertor_h
3
4
5typedef struct {
6    double d_max;
7    double *x;
8    double *y;
9    double *err;
10    int npoints;   
11    int ny;   
12    int nerr; 
13    double alpha;
14} Invertor_params; 
15
16void invertor_dealloc(Invertor_params *pars);
17
18void invertor_init(Invertor_params *pars);
19
20
21double pr_sphere(double R, double r);
22double ortho(double d_max, int n, double r);
23double ortho_transformed(double d_max, int n, double q);
24double ortho_derived(double d_max, int n, double r);
25double iq(double *c, double d_max, int n_c, double q);
26double pr(double *c, double d_max, int n_c, double r);
27double dprdr(double *pars, double d_max, int n_c, double r);
28double reg_term(double *pars, double d_max, int n_c);
29void pr_err(double *pars, double *err, double d_max, int n_c, 
30                double r, double *pr_value, double *pr_value_err);
31
32#endif
Note: See TracBrowser for help on using the repository browser.