1 | // header for SphereFit.c |
---|
2 | |
---|
3 | /* IGOR Fit Functions */ |
---|
4 | double MultiShell(double dp[], double q); |
---|
5 | double PolyMultiShell(double dp[], double q); |
---|
6 | double SphereForm(double dp[], double q); |
---|
7 | double CoreShellForm(double dp[], double q); |
---|
8 | double PolyCoreForm(double dp[], double q); |
---|
9 | double PolyCoreShellRatio(double dp[], double q); |
---|
10 | double VesicleForm(double dp[], double q); |
---|
11 | double SchulzSpheres(double dp[], double q); |
---|
12 | double PolyRectSpheres(double dp[], double q); |
---|
13 | double PolyHardSphereIntensity(double dp[], double q); |
---|
14 | double BimodalSchulzSpheres(double dp[], double q); |
---|
15 | double GaussPolySphere(double dp[], double q); |
---|
16 | double LogNormalPolySphere(double dp[], double q); |
---|
17 | double BinaryHS(double dp[], double q); |
---|
18 | double BinaryHS_PSF11(double dp[], double q); |
---|
19 | double BinaryHS_PSF12(double dp[], double q); |
---|
20 | double BinaryHS_PSF22(double dp[], double q); |
---|
21 | |
---|
22 | //function prototypes |
---|
23 | double F_func(double qr); |
---|
24 | double MultiShellGuts(double q,double rcore,double ts,double tw,double rhocore,double rhoshel,int num); |
---|
25 | double fnt2(double yy, double zz); |
---|
26 | double fnt3(double yy, double pp, double zz); |
---|
27 | double SchulzSphere_Fn(double scale, double ravg, double pd, double rho, double rhos, double x); |
---|
28 | int ashcroft(double qval, double r2, double nf2, double aa, double phi, double *s11, double *s22, double *s12); |
---|
29 | |
---|
30 | static double SchulzPoint(double x, double avg, double zz); |
---|
31 | static double gammln(double xx); |
---|
32 | static double Gauss_distr(double sig, double avg, double pt); |
---|
33 | static double LogNormal_distr(double sig, double mu, double pt); |
---|