Changeset 112 for sans/Analysis/branches
- Timestamp:
- May 9, 2007 4:33:54 PM (16 years ago)
- Location:
- sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis/XOP/SANSAnalysis.c
r106 r112 17 17 #include "StructureFactor.h" 18 18 #include "ResolutionSmearing.h" 19 #include "Func2D.h" 19 20 20 21 static long … … 215 216 case 58: // y =Smear_Model_76_X (utility). 216 217 return((long)SmearedCyl_PolyRadiusX); // This function is called using the direct method. 218 break; 219 case 59: // y =Smear_Model_76_X (utility). 220 return((long)Cylinder_2D_Dist); // This function is called using the direct method. 217 221 break; 218 222 } -
sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis/XOP/SANSAnalysis.h
r97 r112 19 19 }FitParams, *FitParamsPtr; 20 20 21 // Fit function parameter structure 22 typedef struct FitParams2D { 23 double qy; // Independent variable. 24 double qx; // Independent variable. 25 waveHndl waveHandle; // Coefficient wave. 26 double result; 27 }FitParams2D, *FitParams2DPtr; 21 28 -
sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis/XOP/SANSAnalysis.r
r106 r112 531 531 }, 532 532 533 "Cylinder_2D_Dist", 534 F_UTIL | F_EXTERNAL, /* function category == UTILITY */ 535 NT_FP64, /* return value type */ 536 { 537 NT_FP64 + WAVE_TYPE, /* double precision wave (coefficient wave) */ 538 NT_FP64, /* double precision x */ 539 NT_FP64, /* double precision x */ 540 }, 541 542 533 543 } 534 544 }; -
sans/Analysis/branches/ajj_23APR07/XOPs/SANSAnalysis/lib/libSANSAnalysis.h
r100 r112 107 107 double FourLevel(double dp[], double q); 108 108 109 110 typedef struct { 111 double scale; 112 double radius; 113 double length; 114 double contrast; 115 double background; 116 double cyl_theta; 117 double cyl_phi; 118 } CylinderParameters; 119 120 typedef struct { 121 double scale; 122 double radius; 123 double length; 124 double contrast; 125 double background; 126 double cyl_theta; 127 double cyl_phi; 128 double sigma_theta; 129 double sigma_phi; 130 double sigma_radius; 131 } SmearCylinderParameters; 132 133 /// 1D scattering function 134 double cylinder_analytical_1D(CylinderParameters *pars, double q); 135 /// 2D scattering function 136 double cylinder_analytical_2D(CylinderParameters *pars, double q, double phi); 137 /// 1D scattering function 138 double smeared_cylinder_analytical_1D(SmearCylinderParameters *pars, double q); 139 /// 2D scattering function 140 double dist_cylinder_2D(double pars[], double q, double phi); 141 double smeared_cylinder_analytical_2D(SmearCylinderParameters *pars, double q, double phi); 142 double smeared_cylinder_dist( double x, double mean, double sigma );
Note: See TracChangeset
for help on using the changeset viewer.