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 4378360 was
2d06beb,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Use simple least-square fit
|
-
Property mode set to
100644
|
File size:
884 bytes
|
Rev | Line | |
---|
[9e8dc22] | 1 | #if !defined(invertor_h) |
---|
| 2 | #define invertor_h |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | typedef struct { |
---|
| 6 | double d_max; |
---|
| 7 | double *x; |
---|
| 8 | double *y; |
---|
| 9 | double *err; |
---|
| 10 | int npoints; |
---|
| 11 | int ny; |
---|
[eca05c8] | 12 | int nerr; |
---|
| 13 | double alpha; |
---|
| 14 | } Invertor_params; |
---|
[9e8dc22] | 15 | |
---|
| 16 | void invertor_dealloc(Invertor_params *pars); |
---|
| 17 | |
---|
| 18 | void invertor_init(Invertor_params *pars); |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | double pr_sphere(double R, double r); |
---|
| 22 | double ortho(double d_max, int n, double r); |
---|
| 23 | double ortho_transformed(double d_max, int n, double q); |
---|
| 24 | double ortho_derived(double d_max, int n, double r); |
---|
| 25 | double iq(double *c, double d_max, int n_c, double q); |
---|
| 26 | double pr(double *c, double d_max, int n_c, double r); |
---|
[eca05c8] | 27 | double dprdr(double *pars, double d_max, int n_c, double r); |
---|
| 28 | double reg_term(double *pars, double d_max, int n_c); |
---|
| 29 | void pr_err(double *pars, double *err, double d_max, int n_c, |
---|
| 30 | double r, double *pr_value, double *pr_value_err); |
---|
[9e8dc22] | 31 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.