[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; |
---|
[f71287f4] | 14 | double q_min; |
---|
| 15 | double q_max; |
---|
[eca05c8] | 16 | } Invertor_params; |
---|
[9e8dc22] | 17 | |
---|
| 18 | void invertor_dealloc(Invertor_params *pars); |
---|
| 19 | |
---|
| 20 | void invertor_init(Invertor_params *pars); |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | double pr_sphere(double R, double r); |
---|
| 24 | double ortho(double d_max, int n, double r); |
---|
| 25 | double ortho_transformed(double d_max, int n, double q); |
---|
| 26 | double ortho_derived(double d_max, int n, double r); |
---|
| 27 | double iq(double *c, double d_max, int n_c, double q); |
---|
| 28 | double pr(double *c, double d_max, int n_c, double r); |
---|
[eca05c8] | 29 | double dprdr(double *pars, double d_max, int n_c, double r); |
---|
[abad620] | 30 | double reg_term(double *pars, double d_max, int n_c, int nslice); |
---|
| 31 | double int_p2(double *pars, double d_max, int n_c, int nslice); |
---|
[eca05c8] | 32 | void pr_err(double *pars, double *err, double d_max, int n_c, |
---|
| 33 | double r, double *pr_value, double *pr_value_err); |
---|
[4f63160] | 34 | int npeaks(double *pars, double d_max, int n_c, int nslice); |
---|
[43c0a8e] | 35 | double positive_integral(double *pars, double d_max, int n_c, int nslice); |
---|
| 36 | double positive_errors(double *pars, double *err, double d_max, int n_c, int nslice); |
---|
[4f63160] | 37 | |
---|
[9e8dc22] | 38 | #endif |
---|