Changeset 153 for sans/Analysis/branches
- Timestamp:
- Aug 30, 2007 4:24:41 PM (15 years ago)
- Location:
- sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/BE_Polyelectrolyte.ipf
r151 r153 13 13 //////////////////////////////////////////////// 14 14 15 Proc PlotBE _Polyelectrolyte(num,qmin,qmax)15 Proc PlotBEPolyelectrolyte(num,qmin,qmax) 16 16 Variable num=512,qmin=0.001,qmax=0.2 17 17 Prompt num "Enter number of data points for model: " … … 36 36 /////////////////////////////////////////////////////////// 37 37 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 38 Proc PlotSmearedBE _Polyelectrolyte(str)38 Proc PlotSmearedBEPolyelectrolyte(str) 39 39 String str 40 40 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 58 58 59 59 Variable/G gs_BE=0 60 gs_BE := fSmearedBEPolyelec (smear_coef_BE,smeared_BE,smeared_qvals) //this wrapper fills the STRUCT60 gs_BE := fSmearedBEPolyelectrolyte(smear_coef_BE,smeared_BE,smeared_qvals) //this wrapper fills the STRUCT 61 61 62 62 Display smeared_BE vs smeared_qvals //**** mod … … 138 138 139 139 // this is all there is to the smeared calculation! 140 Function SmearedBEPolyelec (s) :FitFunc140 Function SmearedBEPolyelectrolyte(s) :FitFunc 141 141 Struct ResSmearAAOStruct &s 142 142 … … 152 152 // used only for the dependency, not for fitting 153 153 // 154 Function fSmearedBEPolyelec (coefW,yW,xW)154 Function fSmearedBEPolyelectrolyte(coefW,yW,xW) 155 155 Wave coefW,yW,xW 156 156 … … 167 167 168 168 Variable err 169 err = SmearedBEPolyelec (fs)169 err = SmearedBEPolyelectrolyte(fs) 170 170 171 171 return (0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/CoreShell.ipf
r146 r153 24 24 Edit parameters_css,coef_css 25 25 Variable/G root:g_css 26 g_css := CoreShell Form(coef_css,ywave_css,xwave_css)27 // ywave_css := CoreShell Form(coef_css,xwave_css)26 g_css := CoreShellSphere(coef_css,ywave_css,xwave_css) 27 // ywave_css := CoreShellSphere(coef_css,xwave_css) 28 28 Display ywave_css vs xwave_css 29 29 ModifyGraph log=1,marker=29,msize=2,mode=4 … … 58 58 59 59 Variable/G gs_css=0 60 gs_css := fSmearedCoreShell Form(smear_coef_css,smeared_css,smeared_qvals) //this wrapper fills the STRUCT60 gs_css := fSmearedCoreShellSphere(smear_coef_css,smeared_css,smeared_qvals) //this wrapper fills the STRUCT 61 61 62 62 Display smeared_css vs smeared_qvals … … 71 71 72 72 //AAO version 73 Function CoreShell Form(cw,yw,xw) : FitFunc73 Function CoreShellSphere(cw,yw,xw) : FitFunc 74 74 Wave cw,yw,xw 75 75 76 #if exists("CoreShell FormX")77 yw = CoreShell FormX(cw,xw)76 #if exists("CoreShellSphereX") 77 yw = CoreShellSphereX(cw,xw) 78 78 #else 79 yw = fCoreShell Form(cw,xw)79 yw = fCoreShellSphere(cw,xw) 80 80 #endif 81 81 return(0) … … 85 85 // unsmeared model calculation 86 86 /////////////////////////// 87 Function fCoreShell Form(w,x) : FitFunc87 Function fCoreShellSphere(w,x) : FitFunc 88 88 Wave w 89 89 Variable x … … 139 139 140 140 // this is all there is to the smeared calculation! 141 Function SmearedCoreShell Form(s) :FitFunc141 Function SmearedCoreShellSphere(s) :FitFunc 142 142 Struct ResSmearAAOStruct &s 143 143 144 144 ////the name of your unsmeared model is the first argument 145 Smear_Model_20(CoreShell Form,s.coefW,s.xW,s.yW,s.resW)145 Smear_Model_20(CoreShellSphere,s.coefW,s.xW,s.yW,s.resW) 146 146 147 147 return(0) … … 153 153 // used only for the dependency, not for fitting 154 154 // 155 Function fSmearedCoreShell Form(coefW,yW,xW)155 Function fSmearedCoreShellSphere(coefW,yW,xW) 156 156 Wave coefW,yW,xW 157 157 … … 168 168 169 169 Variable err 170 err = SmearedCoreShell Form(fs)170 err = SmearedCoreShellSphere(fs) 171 171 172 172 return (0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/CoreShellCylinder.ipf
r151 r153 14 14 //////////////////////////////////////////////// 15 15 16 Proc PlotCoreShellCylinder Form(num,qmin,qmax)16 Proc PlotCoreShellCylinder(num,qmin,qmax) 17 17 Variable num=128,qmin=0.001,qmax=0.7 18 18 Prompt num "Enter number of data points for model: " … … 37 37 /////////////////////////////////////////////////////////// 38 38 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 39 Proc PlotSmearedC SCylinderForm(str)39 Proc PlotSmearedCoreShellCylinder(str) 40 40 String str 41 41 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 59 59 60 60 Variable/G gs_cscyl=0 61 gs_cscyl := fSmearedCoreShellCylinder Form(smear_coef_cscyl,smeared_cscyl,smeared_qvals) //this wrapper fills the STRUCT61 gs_cscyl := fSmearedCoreShellCylinder(smear_coef_cscyl,smeared_cscyl,smeared_qvals) //this wrapper fills the STRUCT 62 62 63 63 Display smeared_cscyl vs smeared_qvals … … 223 223 224 224 // this is all there is to the smeared calculation! 225 Function SmearedCoreShellCylinder Form(s) :FitFunc225 Function SmearedCoreShellCylinder(s) :FitFunc 226 226 Struct ResSmearAAOStruct &s 227 227 … … 238 238 // used only for the dependency, not for fitting 239 239 // 240 Function fSmearedCoreShellCylinder Form(coefW,yW,xW)240 Function fSmearedCoreShellCylinder(coefW,yW,xW) 241 241 Wave coefW,yW,xW 242 242 … … 253 253 254 254 Variable err 255 err = SmearedCoreShellCylinder Form(fs)255 err = SmearedCoreShellCylinder(fs) 256 256 257 257 return (0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/CoreShell_and_Struct.ipf
r151 r153 91 91 //calculate each and combine 92 92 Duplicate/O xw temp_CSS_HS_PQ,temp_CSS_HS_SQ //make waves for the AAO 93 CoreShell Form(form_CSS_HS,temp_CSS_HS_PQ,xw)93 CoreShellSphere(form_CSS_HS,temp_CSS_HS_PQ,xw) 94 94 HardSphereStruct(struct_CSS_HS,temp_CSS_HS_SQ,xw) 95 95 yw = temp_CSS_HS_PQ * temp_CSS_HS_SQ … … 186 186 //calculate each and combine 187 187 Duplicate/O xw temp_CSS_SW_PQ,temp_CSS_SW_SQ //make waves for the AAO 188 CoreShell Form(form_CSS_SW,temp_CSS_SW_PQ,xw)188 CoreShellSphere(form_CSS_SW,temp_CSS_SW_PQ,xw) 189 189 SquareWellStruct(struct_CSS_SW,temp_CSS_SW_SQ,xw) 190 190 yw = temp_CSS_SW_PQ * temp_CSS_SW_SQ … … 294 294 //calculate each and combine 295 295 Duplicate/O xw temp_CSS_SC_PQ,temp_CSS_SC_SQ //make waves for the AAO 296 CoreShell Form(form_CSS_SC,temp_CSS_SC_PQ,xw)296 CoreShellSphere(form_CSS_SC,temp_CSS_SC_PQ,xw) 297 297 HayterPenfoldMSA(struct_CSS_SC,temp_CSS_SC_SQ,xw) 298 298 yw = temp_CSS_SC_PQ * temp_CSS_SC_SQ … … 389 389 //calculate each and combine 390 390 Duplicate/O xw temp_CSS_SHS_PQ,temp_CSS_SHS_SQ //make waves for the AAO 391 CoreShell Form(form_CSS_SHS,temp_CSS_SHS_PQ,xw)391 CoreShellSphere(form_CSS_SHS,temp_CSS_SHS_PQ,xw) 392 392 StickyHS_Struct(struct_CSS_SHS,temp_CSS_SHS_SQ,xw) 393 393 yw = temp_CSS_SHS_PQ * temp_CSS_SHS_SQ -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/DAB_model.ipf
r151 r153 10 10 11 11 12 Proc PlotDAB (num,qmin,qmax)12 Proc PlotDAB_Model(num,qmin,qmax) 13 13 Variable num=512, qmin=.001, qmax=.7 14 14 Prompt num "Enter number of data points for model: " … … 34 34 //////////////////////////////////////////////////// 35 35 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 36 Proc PlotSmearedDAB (str)36 Proc PlotSmearedDAB_Model(str) 37 37 String str 38 38 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/HollowCylinders.ipf
r151 r153 11 11 //////////////////////////////////////////////// 12 12 13 Proc PlotHollowCylinder Form(num,qmin,qmax)13 Proc PlotHollowCylinder(num,qmin,qmax) 14 14 Variable num=128,qmin=0.001,qmax=0.7 15 15 Prompt num "Enter number of data points for model: " … … 34 34 /////////////////////////////////////////////////////////// 35 35 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 36 Proc PlotSmearedHollowCylinder Form(str)36 Proc PlotSmearedHollowCylinder(str) 37 37 String str 38 38 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Lorentz_model.ipf
r151 r153 5 5 // J. Barker, 2-10-99 6 6 ///////////////////////////// 7 Proc Plot _Lorentz(num,qmin,qmax)7 Proc PlotLorentz_Model(num,qmin,qmax) 8 8 Variable num=512, qmin=.001, qmax=.7 9 9 Prompt num "Enter number of data points for model: " … … 29 29 //////////////////////////////////////////////////// 30 30 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 31 Proc PlotSmeared _Lorentz(str)31 Proc PlotSmearedLorentz_Model(str) 32 32 String str 33 33 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 101 101 102 102 // this is all there is to the smeared calculation! 103 Function Smeared _Lorentz_Model(s) :FitFunc103 Function SmearedLorentz_Model(s) :FitFunc 104 104 Struct ResSmearAAOStruct &s 105 105 … … 131 131 132 132 Variable err 133 err = Smeared _Lorentz_Model(fs)133 err = SmearedLorentz_Model(fs) 134 134 135 135 return (0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/Beaucage.ipf
r151 r153 14 14 // see the help file for the original references 15 15 // 16 Proc Plot Beau_One(num,qmin,qmax)16 Proc PlotOnelevel(num,qmin,qmax) 17 17 Variable num=256,qmin=0.001,qmax=0.7 18 18 Prompt num "Enter number of data points for model: " … … 35 35 End 36 36 37 Proc Plot Beau_Two(num,qmin,qmax)37 Proc PlotTwoLevel(num,qmin,qmax) 38 38 Variable num=256,qmin=0.001,qmax=0.7 39 39 Prompt num "Enter number of data points for model: " … … 56 56 End 57 57 58 Proc Plot Beau_Three(num,qmin,qmax)58 Proc PlotThreeLevel(num,qmin,qmax) 59 59 Variable num=256,qmin=0.001,qmax=0.7 60 60 Prompt num "Enter number of data points for model: " … … 77 77 End 78 78 79 Proc Plot Beau_Four(num,qmin,qmax)79 Proc PlotFourLevel(num,qmin,qmax) 80 80 Variable num=256,qmin=0.001,qmax=0.7 81 81 Prompt num "Enter number of data points for model: " … … 101 101 102 102 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 103 Proc PlotSmeared Beau_OneLevel(str)103 Proc PlotSmearedOneLevel(str) 104 104 String str 105 105 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 135 135 136 136 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 137 Proc PlotSmeared Beau_TwoLevel(str)137 Proc PlotSmearedTwoLevel(str) 138 138 String str 139 139 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 169 169 170 170 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 171 Proc PlotSmeared Beau_ThreeLevel(str)171 Proc PlotSmearedThreeLevel(str) 172 172 String str 173 173 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 203 203 204 204 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 205 Proc PlotSmeared Beau_FourLevel(str)205 Proc PlotSmearedFourLevel(str) 206 206 String str 207 207 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/BinaryHardSpheres.ipf
r151 r153 44 44 //background = guess[7] 45 45 46 Proc Plot _BinaryHS(num,qmin,qmax)46 Proc PlotBinaryHS(num,qmin,qmax) 47 47 Variable num=256, qmin=.001, qmax=.7 48 48 Prompt num "Enter number of data points for model: " … … 69 69 70 70 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 71 Proc PlotSmeared _BinaryHS(str)71 Proc PlotSmearedBinaryHS(str) 72 72 String str 73 73 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 92 92 93 93 Variable/G gs_BinaryHS=0 94 gs_BinaryHS := f BinaryHS_Smeared(smear_coef_BinaryHS,smeared_BinaryHS,smeared_qvals) //this wrapper fills the STRUCT94 gs_BinaryHS := fSmearedBinaryHS(smear_coef_BinaryHS,smeared_BinaryHS,smeared_qvals) //this wrapper fills the STRUCT 95 95 96 96 Display smeared_BinaryHS vs smeared_qvals // … … 455 455 // used only for the dependency, not for fitting 456 456 // 457 Function f BinaryHS_Smeared(coefW,yW,xW)457 Function fSmearedBinaryHS(coefW,yW,xW) 458 458 Wave coefW,yW,xW 459 459 … … 470 470 471 471 Variable err 472 err = BinaryHS_Smeared(fs)472 err = SmearedBinaryHS(fs) 473 473 474 474 return (0) … … 476 476 477 477 // this is all there is to the smeared calculation! 478 Function BinaryHS_Smeared(s) :FitFunc478 Function SmearedBinaryHS(s) :FitFunc 479 479 Struct ResSmearAAOStruct &s 480 480 -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/EllipticalCylinder.ipf
r151 r153 14 14 //////////////////////////////////////////////// 15 15 16 Proc PlotEllip CylinderForm(num,qmin,qmax)16 Proc PlotEllipticalCylinder(num,qmin,qmax) 17 17 Variable num=50,qmin=0.001,qmax=0.7 18 18 Prompt num "Enter number of data points for model: " … … 32 32 33 33 Variable/G root:g_ecf 34 g_ecf := Ellip Cyl20(coef_ecf,ywave_ecf,xwave_ecf)34 g_ecf := EllipticalCylinder(coef_ecf,ywave_ecf,xwave_ecf) 35 35 Display ywave_ecf vs xwave_ecf 36 36 ModifyGraph log=1,marker=29,msize=2,mode=4 … … 42 42 43 43 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 44 Proc PlotSmearedEllip CylForm(str)44 Proc PlotSmearedEllipticalCylinder(str) 45 45 String str 46 46 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 64 64 65 65 Variable/G gs_ecf=0 66 gs_ecf := fSmearedEllip CylForm(smear_coef_ecf,smeared_ecf,smeared_qvals) //this wrapper fills the STRUCT66 gs_ecf := fSmearedEllipticalCylinder(smear_coef_ecf,smeared_ecf,smeared_qvals) //this wrapper fills the STRUCT 67 67 68 68 Display smeared_ecf vs smeared_qvals … … 80 80 // simply calls the original single point calculation with 81 81 // a wave assignment (this will behave nicely if given point ranges) 82 Function Ellip Cyl20(cw,yw,xw) : FitFunc82 Function EllipticalCylinder(cw,yw,xw) : FitFunc 83 83 Wave cw,yw,xw 84 84 85 #if exists("Ellip Cyl20X")86 yw = Ellip Cyl20X(cw,xw)85 #if exists("EllipticalCylinderX") 86 yw = EllipticalCylinderX(cw,xw) 87 87 #else 88 yw = fEllip Cyl20(cw,xw)88 yw = fEllipticalCylinder(cw,xw) 89 89 #endif 90 90 return(0) … … 95 95 // 20 points of quadrature seems to be sufficient for both integrals 96 96 // 97 Function fEllip Cyl20(w,x) : FitFunc97 Function fEllipticalCylinder(w,x) : FitFunc 98 98 Wave w 99 99 Variable x … … 169 169 // used only for the dependency, not for fitting 170 170 // 171 Function fSmearedEllip CylForm(coefW,yW,xW)171 Function fSmearedEllipticalCylinder(coefW,yW,xW) 172 172 Wave coefW,yW,xW 173 173 … … 184 184 185 185 Variable err 186 err = SmearedEllip CylForm(fs)186 err = SmearedEllipticalCylinder(fs) 187 187 188 188 return (0) … … 190 190 191 191 // this is all there is to the smeared calculation! 192 Function SmearedEllip CylForm(s) :FitFunc192 Function SmearedEllipticalCylinder(s) :FitFunc 193 193 Struct ResSmearAAOStruct &s 194 194 195 195 // the name of your unsmeared model (AAO) is the first argument 196 Smear_Model_20(Ellip Cyl20,s.coefW,s.xW,s.yW,s.resW)196 Smear_Model_20(EllipticalCylinder,s.coefW,s.xW,s.yW,s.resW) 197 197 198 198 return(0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/FlexCyl_EllipCross.ipf
r151 r153 38 38 39 39 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 40 Proc PlotSmeared _FlexCyl_Ellip(str)40 Proc PlotSmearedFlexCyl_Ellip(str) 41 41 String str 42 42 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/FlexCyl_PolyLen.ipf
r151 r153 8 8 // JULY 2006 9 9 // 10 Proc PlotFlexCyl_PolyLen gth(num,qmin,qmax)10 Proc PlotFlexCyl_PolyLen(num,qmin,qmax) 11 11 Variable num=128,qmin=0.001,qmax=0.7 12 12 Prompt num "Enter number of data points for model: " … … 31 31 32 32 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 33 Proc PlotSmeared _FlexCyl_PolyLen(str)33 Proc PlotSmearedFlexCyl_PolyLen(str) 34 34 String str 35 35 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/FlexCyl_PolyRadius.ipf
r151 r153 7 7 // JULY 2006 8 8 // 9 Proc PlotFlexCyl_PolyRad ius(num,qmin,qmax)9 Proc PlotFlexCyl_PolyRad(num,qmin,qmax) 10 10 Variable num=100,qmin=0.001,qmax=0.7 11 11 Prompt num "Enter number of data points for model: " -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/GaussSpheres.ipf
r151 r153 11 11 // 12 12 13 Proc PlotGauss PolySphere(num,qmin,qmax)13 Proc PlotGaussSpheres(num,qmin,qmax) 14 14 Variable num=128,qmin=0.001,qmax=0.7 15 15 Prompt num "Enter number of data points for model: " … … 24 24 25 25 Variable/G root:g_pgs 26 g_pgs := Gauss PolySphere(coef_pgs,ywave_pgs,xwave_pgs)26 g_pgs := GaussSpheres(coef_pgs,ywave_pgs,xwave_pgs) 27 27 Display ywave_pgs vs xwave_pgs 28 28 ModifyGraph log=1,marker=29,msize=2,mode=4 … … 33 33 34 34 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 35 Proc PlotSmearedGauss PolySpheres(str)35 Proc PlotSmearedGaussSpheres(str) 36 36 String str 37 37 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 55 55 56 56 Variable/G gs_pgs=0 57 gs_pgs := fSmearedGauss PolySphere(smear_coef_pgs,smeared_pgs,smeared_qvals) //this wrapper fills the STRUCT57 gs_pgs := fSmearedGaussSpheres(smear_coef_pgs,smeared_pgs,smeared_qvals) //this wrapper fills the STRUCT 58 58 59 59 Display smeared_pgs vs smeared_qvals … … 72 72 // simply calls the original single point calculation with 73 73 // a wave assignment (this will behave nicely if given point ranges) 74 Function Gauss PolySphere(cw,yw,xw) : FitFunc74 Function GaussSpheres(cw,yw,xw) : FitFunc 75 75 Wave cw,yw,xw 76 76 77 #if exists("Gauss PolySphereX")78 yw = Gauss PolySphereX(cw,xw)77 #if exists("GaussSpheresX") 78 yw = GaussSpheresX(cw,xw) 79 79 #else 80 yw = fGauss PolySphere(cw,xw)80 yw = fGaussSpheres(cw,xw) 81 81 #endif 82 82 return(0) 83 83 End 84 84 85 Function fGauss PolySphere(w,xx) : FitFunc85 Function fGaussSpheres(w,xx) : FitFunc 86 86 wave w 87 87 variable xx … … 177 177 // used only for the dependency, not for fitting 178 178 // 179 Function fSmearedGauss PolySphere(coefW,yW,xW)179 Function fSmearedGaussSpheres(coefW,yW,xW) 180 180 Wave coefW,yW,xW 181 181 … … 192 192 193 193 Variable err 194 err = SmearedGauss PolySphere(fs)194 err = SmearedGaussSpheres(fs) 195 195 196 196 return (0) … … 198 198 199 199 // this is all there is to the smeared calculation! 200 Function SmearedGauss PolySphere(s) :FitFunc200 Function SmearedGaussSpheres(s) :FitFunc 201 201 Struct ResSmearAAOStruct &s 202 202 203 203 // the name of your unsmeared model (AAO) is the first argument 204 Smear_Model_20(Gauss PolySphere,s.coefW,s.xW,s.yW,s.resW)204 Smear_Model_20(GaussSpheres,s.coefW,s.xW,s.yW,s.resW) 205 205 206 206 return(0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/GaussSpheres_and_Struct.ipf
r151 r153 99 99 //calculate each and combine 100 100 Duplicate/O xw tmp_pgs_HS_PQ,tmp_pgs_HS_SQ 101 Gauss PolySphere(form_pgs_HS,tmp_pgs_HS_PQ,xw)101 GaussSpheres(form_pgs_HS,tmp_pgs_HS_PQ,xw) 102 102 HardSphereStruct(struct_pgs_HS,tmp_pgs_HS_SQ,xw) 103 103 yw = tmp_pgs_HS_PQ * tmp_pgs_HS_SQ … … 199 199 //calculate each and combine 200 200 Duplicate/O xw tmp_pgs_SW_PQ,tmp_pgs_SW_SQ 201 Gauss PolySphere(form_pgs_SW,tmp_pgs_SW_PQ,xw)201 GaussSpheres(form_pgs_SW,tmp_pgs_SW_PQ,xw) 202 202 SquareWellStruct(struct_pgs_SW,tmp_pgs_SW_SQ,xw) 203 203 yw = tmp_pgs_SW_PQ * tmp_pgs_SW_SQ … … 312 312 //calculate each and combine 313 313 Duplicate/O xw tmp_pgs_SC_PQ,tmp_pgs_SC_SQ 314 Gauss PolySphere(form_pgs_SC,tmp_pgs_SC_PQ,xw)314 GaussSpheres(form_pgs_SC,tmp_pgs_SC_PQ,xw) 315 315 HayterPenfoldMSA(struct_pgs_SC,tmp_pgs_SC_SQ,xw) 316 316 yw = tmp_pgs_SC_PQ * tmp_pgs_SC_SQ … … 412 412 //calculate each and combine 413 413 Duplicate/O xw tmp_pgs_SHS_PQ,tmp_pgs_SHS_SQ 414 Gauss PolySphere(form_pgs_SHS,tmp_pgs_SHS_PQ,xw)414 GaussSpheres(form_pgs_SHS,tmp_pgs_SHS_PQ,xw) 415 415 StickyHS_Struct(struct_pgs_SHS,tmp_pgs_SHS_SQ,xw) 416 416 yw = tmp_pgs_SHS_PQ * tmp_pgs_SHS_SQ -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/LamellarFF.ipf
r151 r153 21 21 //needed to calculate the model function. 22 22 // 23 Proc Plot _LamellarFF(num,qmin,qmax)23 Proc PlotLamellarFF(num,qmin,qmax) 24 24 Variable num=128, qmin=.001, qmax=.5 25 25 Prompt num "Enter number of data points for model: " … … 46 46 47 47 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 48 Proc PlotSmeared _LamellarFF(str)48 Proc PlotSmearedLamellarFF(str) 49 49 String str 50 50 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 68 68 69 69 Variable/G gs_LamellarFF=0 70 gs_LamellarFF := f LamellarFF_Smeared(smear_coef_LamellarFF,smeared_LamellarFF,smeared_qvals) //this wrapper fills the STRUCT70 gs_LamellarFF := fSmearedLamellarFF(smear_coef_LamellarFF,smeared_LamellarFF,smeared_qvals) //this wrapper fills the STRUCT 71 71 72 72 Display smeared_LamellarFF vs smeared_qvals // … … 141 141 // used only for the dependency, not for fitting 142 142 // 143 Function f LamellarFF_Smeared(coefW,yW,xW)143 Function fSmearedLamellarFF(coefW,yW,xW) 144 144 Wave coefW,yW,xW 145 145 … … 156 156 157 157 Variable err 158 err = LamellarFF_Smeared(fs)158 err = SmearedLamellarFF(fs) 159 159 160 160 return (0) … … 162 162 163 163 //the smeared model calculation 164 Function LamellarFF_Smeared(s) :FitFunc164 Function SmearedLamellarFF(s) :FitFunc 165 165 Struct ResSmearAAOStruct &s 166 166 -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/LamellarFF_HG.ipf
r151 r153 23 23 //needed to calculate the model function. 24 24 // 25 Proc Plot _LamellarFF_HG(num,qmin,qmax)25 Proc PlotLamellarFF_HG(num,qmin,qmax) 26 26 Variable num=128, qmin=.001, qmax=.5 27 27 Prompt num "Enter number of data points for model: " … … 48 48 49 49 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 50 Proc PlotSmeared _LamellarFF_HG(str)50 Proc PlotSmearedLamellarFF_HG(str) 51 51 String str 52 52 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 70 70 71 71 Variable/G gs_LamellarFF_HG=0 72 gs_LamellarFF_HG := f LamellarFF_HG_Smeared(smear_coef_LamellarFF_HG,smeared_LamellarFF_HG,smeared_qvals) //this wrapper fills the STRUCT72 gs_LamellarFF_HG := fSmearedLamellarFF_HG(smear_coef_LamellarFF_HG,smeared_LamellarFF_HG,smeared_qvals) //this wrapper fills the STRUCT 73 73 74 74 Display smeared_LamellarFF_HG vs smeared_qvals // … … 149 149 // used only for the dependency, not for fitting 150 150 // 151 Function f LamellarFF_HG_Smeared(coefW,yW,xW)151 Function fSmearedLamellarFF_HG(coefW,yW,xW) 152 152 Wave coefW,yW,xW 153 153 … … 164 164 165 165 Variable err 166 err = LamellarFF_HG_Smeared(fs)166 err = SmearedLamellarFF_HG(fs) 167 167 168 168 return (0) … … 170 170 171 171 //the smeared model calculation 172 Function LamellarFF_HG_Smeared(s) :FitFunc172 Function SmearedLamellarFF_HG(s) :FitFunc 173 173 Struct ResSmearAAOStruct &s 174 174 -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/LamellarPS.ipf
r151 r153 47 47 //needed to calculate the model function. 48 48 // 49 Proc Plot _LamellarPS(num,qmin,qmax)49 Proc PlotLamellarPS(num,qmin,qmax) 50 50 Variable num=128, qmin=.001, qmax=.5 51 51 Prompt num "Enter number of data points for model: " -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/LamellarPS_HG.ipf
r151 r153 47 47 //needed to calculate the model function. 48 48 // 49 Proc Plot _LamellarPS_HG(num,qmin,qmax)49 Proc PlotLamellarPS_HG(num,qmin,qmax) 50 50 Variable num=128, qmin=.001, qmax=.5 51 51 Prompt num "Enter number of data points for model: " -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/LogNormSpheres_and_Struct.ipf
r151 r153 98 98 //calculate each and combine 99 99 Duplicate/O xw tmp_lns_HS_PQ,tmp_lns_HS_SQ 100 LogNormal PolySphere(form_lns_HS,tmp_lns_HS_PQ,xw)100 LogNormalSphere(form_lns_HS,tmp_lns_HS_PQ,xw) 101 101 HardSphereStruct(struct_lns_HS,tmp_lns_HS_SQ,xw) 102 102 yw = tmp_lns_HS_PQ *tmp_lns_HS_SQ … … 198 198 //calculate each and combine 199 199 Duplicate/O xw tmp_lns_SW_PQ,tmp_lns_SW_SQ 200 LogNormal PolySphere(form_lns_SW,tmp_lns_SW_PQ,xw)200 LogNormalSphere(form_lns_SW,tmp_lns_SW_PQ,xw) 201 201 SquareWellStruct(struct_lns_SW,tmp_lns_SW_SQ,xw) 202 202 yw = tmp_lns_SW_PQ * tmp_lns_SW_SQ … … 312 312 //calculate each and combine 313 313 Duplicate/O xw tmp_lns_SC_PQ,tmp_lns_SC_SQ 314 LogNormal PolySphere(form_lns_SC,tmp_lns_SC_PQ,xw)314 LogNormalSphere(form_lns_SC,tmp_lns_SC_PQ,xw) 315 315 HayterPenfoldMSA(struct_lns_SC,tmp_lns_SC_SQ,xw) 316 316 yw = tmp_lns_SC_PQ * tmp_lns_SC_SQ … … 412 412 //calculate each and combine 413 413 Duplicate/O xw tmp_lns_SHS_PQ,tmp_lns_SHS_SQ 414 LogNormal PolySphere(form_lns_SHS,tmp_lns_SHS_PQ,xw)414 LogNormalSphere(form_lns_SHS,tmp_lns_SHS_PQ,xw) 415 415 StickyHS_Struct(struct_lns_SHS,tmp_lns_SHS_SQ,xw) 416 416 yw = tmp_lns_SHS_PQ * tmp_lns_SHS_SQ -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/LogNormalSphere.ipf
r151 r153 8 8 9 9 //Proc to setup data and coefficients to plot the model 10 Proc PlotLogNormal PolySphere(num,qmin,qmax)10 Proc PlotLogNormalSphere(num,qmin,qmax) 11 11 Variable num=128,qmin=0.001,qmax=0.7 12 12 Prompt num "Enter number of data points for model: " … … 21 21 22 22 Variable/G root:g_lns 23 g_lns := LogNormal PolySphere(coef_lns,ywave_lns,xwave_lns)23 g_lns := LogNormalSphere(coef_lns,ywave_lns,xwave_lns) 24 24 Display ywave_lns vs xwave_lns 25 25 ModifyGraph log=1,marker=29,msize=2,mode=4 … … 30 30 31 31 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 32 Proc PlotSmear LogNormPolySphere(str)32 Proc PlotSmearedLogNormalSphere(str) 33 33 String str 34 34 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 52 52 53 53 Variable/G gs_lns=0 54 gs_lns := fSmear LogNormSphere(smear_coef_lns,smeared_lns,smeared_qvals) //this wrapper fills the STRUCT54 gs_lns := fSmearedLogNormalSphere(smear_coef_lns,smeared_lns,smeared_qvals) //this wrapper fills the STRUCT 55 55 56 56 Display smeared_lns vs smeared_qvals … … 69 69 // simply calls the original single point calculation with 70 70 // a wave assignment (this will behave nicely if given point ranges) 71 Function LogNormal PolySphere(cw,yw,xw) : FitFunc71 Function LogNormalSphere(cw,yw,xw) : FitFunc 72 72 Wave cw,yw,xw 73 73 74 #if exists("LogNormal PolySphereX")75 yw = LogNormal PolySphereX(cw,xw)74 #if exists("LogNormalSphereX") 75 yw = LogNormalSphereX(cw,xw) 76 76 #else 77 yw = fLogNormal PolySphere(cw,xw)77 yw = fLogNormalSphere(cw,xw) 78 78 #endif 79 79 return(0) … … 85 85 // 76 points is slower, but reccommended to remove high-q oscillations 86 86 // 87 Function fLogNormal PolySphere(w,xx): FitFunc87 Function fLogNormalSphere(w,xx): FitFunc 88 88 wave w 89 89 variable xx … … 185 185 // used only for the dependency, not for fitting 186 186 // 187 Function fSmear LogNormSphere(coefW,yW,xW)187 Function fSmearedLogNormalSphere(coefW,yW,xW) 188 188 Wave coefW,yW,xW 189 189 … … 200 200 201 201 Variable err 202 err = Smear LogNormSphere(fs)202 err = SmearedLogNormalSphere(fs) 203 203 204 204 return (0) … … 206 206 207 207 // this is all there is to the smeared calculation! 208 Function Smear LogNormSphere(s) :FitFunc208 Function SmearedLogNormalSphere(s) :FitFunc 209 209 Struct ResSmearAAOStruct &s 210 210 211 211 // the name of your unsmeared model (AAO) is the first argument 212 Smear_Model_20(LogNormal PolySphere,s.coefW,s.xW,s.yW,s.resW)212 Smear_Model_20(LogNormalSphere,s.coefW,s.xW,s.yW,s.resW) 213 213 214 214 return(0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/MultiShell.ipf
r151 r153 24 24 25 25 Variable/G root:g_mss 26 g_mss := MultiShell Form(coef_mss,ywave_mss,xwave_mss)26 g_mss := MultiShellSphere(coef_mss,ywave_mss,xwave_mss) 27 27 Display/K=1 ywave_mss vs xwave_mss 28 28 ModifyGraph log=1,marker=29,msize=2,mode=4 … … 33 33 34 34 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 35 Proc PlotSmearedMultiShell (str)35 Proc PlotSmearedMultiShellSphere(str) 36 36 String str 37 37 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 55 55 56 56 Variable/G gs_mss=0 57 gs_mss := fSmearedMultiShell (smear_coef_mss,smeared_mss,smeared_qvals) //this wrapper fills the STRUCT57 gs_mss := fSmearedMultiShellSphere(smear_coef_mss,smeared_mss,smeared_qvals) //this wrapper fills the STRUCT 58 58 59 59 Display/K=1 smeared_mss vs smeared_qvals … … 72 72 // simply calls the original single point calculation with 73 73 // a wave assignment (this will behave nicely if given point ranges) 74 Function MultiShell Form(cw,yw,xw) : FitFunc74 Function MultiShellSphere(cw,yw,xw) : FitFunc 75 75 Wave cw,yw,xw 76 76 77 #if exists("MultiShell FormX")78 yw = MultiShell FormX(cw,xw)77 #if exists("MultiShellSphereX") 78 yw = MultiShellSphereX(cw,xw) 79 79 #else 80 yw = fMultiShell Form(cw,xw)80 yw = fMultiShellSphere(cw,xw) 81 81 #endif 82 82 return(0) 83 83 End 84 84 85 Function fMultiShell Form(w,x) :FitFunc85 Function fMultiShellSphere(w,x) :FitFunc 86 86 Wave w 87 87 Variable x … … 163 163 // used only for the dependency, not for fitting 164 164 // 165 Function fSmearedMultiShell (coefW,yW,xW)165 Function fSmearedMultiShellSphere(coefW,yW,xW) 166 166 Wave coefW,yW,xW 167 167 … … 178 178 179 179 Variable err 180 err = SmearedMultiShell (fs)180 err = SmearedMultiShellSphere(fs) 181 181 182 182 return (0) … … 184 184 185 185 // this is all there is to the smeared calculation! 186 Function SmearedMultiShell (s) :FitFunc186 Function SmearedMultiShellSphere(s) :FitFunc 187 187 Struct ResSmearAAOStruct &s 188 188 189 189 // the name of your unsmeared model (AAO) is the first argument 190 Smear_Model_20(MultiShell Form,s.coefW,s.xW,s.yW,s.resW)190 Smear_Model_20(MultiShellSphere,s.coefW,s.xW,s.yW,s.resW) 191 191 192 192 return(0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/Parallelepiped.ipf
r151 r153 27 27 //needed to calculate the model function. 28 28 // 29 Proc Plot _Parallelepiped(num,qmin,qmax)29 Proc PlotParallelepiped(num,qmin,qmax) 30 30 Variable num=100, qmin=.001, qmax=.7 31 31 Prompt num "Enter number of data points for model: " … … 51 51 52 52 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 53 Proc PlotSmeared _Parallelepiped(str)53 Proc PlotSmearedParallelepiped(str) 54 54 String str 55 55 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 73 73 74 74 Variable/G gs_Parallelepiped=0 75 gs_Parallelepiped := f Parallelepiped_Smeared(smear_coef_Parallelepiped,smeared_Parallelepiped,smeared_qvals) //this wrapper fills the STRUCT75 gs_Parallelepiped := fSmearedParallelepiped(smear_coef_Parallelepiped,smeared_Parallelepiped,smeared_qvals) //this wrapper fills the STRUCT 76 76 77 77 Display smeared_Parallelepiped vs smeared_qvals // … … 203 203 // used only for the dependency, not for fitting 204 204 // 205 Function f Parallelepiped_Smeared(coefW,yW,xW)205 Function fSmearedParallelepiped(coefW,yW,xW) 206 206 Wave coefW,yW,xW 207 207 … … 218 218 219 219 Variable err 220 err = Parallelepiped_Smeared(fs)220 err = SmearedParallelepiped(fs) 221 221 222 222 return (0) … … 224 224 225 225 // this is all there is to the smeared calculation! 226 Function Parallelepiped_Smeared(s) :FitFunc226 Function SmearedParallelepiped(s) :FitFunc 227 227 Struct ResSmearAAOStruct &s 228 228 -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/SchulzSpheres.ipf
r145 r153 9 9 10 10 // 11 Proc PlotSchulz PolySpheres(num,qmin,qmax)11 Proc PlotSchulzSpheres(num,qmin,qmax) 12 12 Variable num=128,qmin=0.001,qmax=0.7 13 13 Prompt num "Enter number of data points for model: " … … 32 32 33 33 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 34 Proc PlotSmearedSchulz PolySpheres(str)34 Proc PlotSmearedSchulzSpheres(str) 35 35 String str 36 36 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/StickyHardSphereStruct.ipf
r127 r153 22 22 //needed to calculate the model function. 23 23 // 24 Proc Plot _StickyHS_Struct(num,qmin,qmax)24 Proc PlotStickyHS_Struct(num,qmin,qmax) 25 25 Variable num=256, qmin=.001, qmax=.5 26 26 Prompt num "Enter number of data points for model: " -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/TriaxialEllipsoid.ipf
r151 r153 23 23 //needed to calculate the model function. 24 24 // 25 Proc Plot _TriaxialEllipsoid(num,qmin,qmax)25 Proc PlotTriaxialEllipsoid(num,qmin,qmax) 26 26 Variable num=100, qmin=.001, qmax=.7 27 27 Prompt num "Enter number of data points for model: " … … 48 48 49 49 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 50 Proc PlotSmeared _TriAxEllipsoid(str)50 Proc PlotSmearedTriaxialEllipsoid(str) 51 51 String str 52 52 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 70 70 71 71 Variable/G gs_triax=0 72 gs_triax := f Triax_Smeared(smear_coef_triax,smeared_triax,smeared_qvals) //this wrapper fills the STRUCT72 gs_triax := fSmearedTriaxialEllipsoid(smear_coef_triax,smeared_triax,smeared_qvals) //this wrapper fills the STRUCT 73 73 74 74 Display smeared_triax vs smeared_qvals // … … 189 189 // used only for the dependency, not for fitting 190 190 // 191 Function f Triax_Smeared(coefW,yW,xW)191 Function fSmearedTriaxialEllipsoid(coefW,yW,xW) 192 192 Wave coefW,yW,xW 193 193 … … 204 204 205 205 Variable err 206 err = Triax_Smeared(fs)206 err = SmearedTriaxialEllipsoid(fs) 207 207 208 208 return (0) … … 210 210 211 211 // this is all there is to the smeared calculation! 212 Function Triax_Smeared(s) :FitFunc212 Function SmearedTriaxialEllipsoid(s) :FitFunc 213 213 Struct ResSmearAAOStruct &s 214 214 -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/NewModels_2006/Vesicle_UL.ipf
r151 r153 21 21 //////////////////////////////////////////////// 22 22 23 Proc PlotVesicle (num,qmin,qmax)23 Proc PlotVesicleForm(num,qmin,qmax) 24 24 Variable num=128,qmin=0.001,qmax=0.7 25 25 Prompt num "Enter number of data points for model: " … … 45 45 46 46 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 47 Proc PlotSmearedVesicle (str)47 Proc PlotSmearedVesicleForm(str) 48 48 String str 49 49 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Packages/Wrapper.ipf
r152 r153 71 71 72 72 // show the available models 73 // not the f* 74 // not the *X XOPS73 // not the f*(cw,xw) point calculations 74 // not the *X(cw,xw) XOPS 75 75 // 76 76 // KIND:10 should show only user-defined curve fitting functions … … 79 79 Function/S W_FunctionPopupList() 80 80 String list,tmp 81 list = FunctionList("*",";","KIND:10") //get everything 82 83 list = RemoveFromList("Sum_Model", list ,";") 81 list = FunctionList("*",";","KIND:10") //get every user defined curve fit function 82 // list = RemoveFromList("Sum_Model", list ,";") 84 83 85 84 tmp = FunctionList("*_proto",";","KIND:10") //prototypes 86 85 list = RemoveFromList(tmp, list ,";") 87 88 tmp = FunctionList("f*",";","KIND:10") //point calculations 86 // Print "everything - proto = ",list 87 // print " " 88 89 tmp = FunctionList("f*",";","NPARAMS:2") //point calculations 90 // Print "f* = ",tmp 91 // print " " 89 92 list = RemoveFromList(tmp, list ,";") 90 93 91 // this should be a null string with KIND:10 92 tmp = FunctionList("*X",";","KIND:10") //XOPs, also point calculations 94 tmp = FunctionList("fSmear*",";","NPARAMS:3") //smeared dependency calculations 95 // Print "f* = ",tmp 96 // print " " 93 97 list = RemoveFromList(tmp, list ,";") 94 98 99 // tmp = FunctionList("*X",";","KIND:4") //XOPs, but these shouldn't show up if KIND:10 is used initially 100 // Print "X* = ",tmp 101 // print " " 102 // list = RemoveFromList(tmp, list ,";") 103 104 //non-fit functions that I can't seem to filter out 105 list = RemoveFromList("BinaryHS_PSF11;BinaryHS_PSF12;BinaryHS_PSF22;EllipCyl_Integrand;PP_Inner;PP_Outer;Phi_EC;TaE_Inner;TaE_Outer;",list,";") 106 95 107 if(strlen(list)==0) 96 108 list = "No functions plotted" … … 113 125 list = WaveList("coef*",";","") 114 126 115 ControlInfo popup_0127 ControlInfo/W=wrapperpanel popup_0 116 128 if(V_Value != 0) //0== no items in menu 117 129 if(DataFolderExists("root:"+S_Value)) … … 121 133 endif 122 134 135 // tmp coefficients that aren't being cleaned up from somewhere... 136 list = RemoveFromList("temp_coef_1;temp_coef_2;", list ,";") 137 123 138 if(strlen(list)==0) 124 139 list = "No functions plotted" 125 140 endif 126 141 list = SortList(list) 142 143 // Print itemsinlist(list,";") 127 144 128 145 setDataFolder root: … … 196 213 End 197 214 198 Function/S getModelSuffix(modelStr) 199 String modelStr 200 201 Variable pos=Strsearch(modelStr,"_",Inf,1) //look backwards to find "_" 202 203 return(modelStr[pos,strlen(modelStr)-1]) 215 // always pass this the coefficient string 216 // 217 // either "coef_" 218 // or "smear_coef_" 219 // 220 Function/S getModelSuffix(coefStr) 221 String coefStr 222 223 Variable pos,start=0 224 // Variable pos=Strsearch(modelStr,"_",Inf,1) //look backwards to find "_" - this fails for form+struct models 225 226 if(stringmatch(coefStr,"smear_*") == 1) 227 start=7 //look forwards to find "_", skipping "smear_coe" if necessary 228 endif 229 pos=Strsearch(coefStr,"_",start,0) 230 //Print start, pos 231 return(coefStr[pos,strlen(coefStr)-1]) 204 232 End 205 233 -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Peak_Gauss_model.ipf
r151 r153 5 5 // J. Barker, 2-10-99 6 6 ////////////////// 7 Proc PlotPeak_Gauss (num,qmin,qmax)7 Proc PlotPeak_Gauss_Model(num,qmin,qmax) 8 8 Variable num=512, qmin=.001, qmax=.7 9 9 Prompt num "Enter number of data points for model: " … … 30 30 //////////////////////////////////////////////////// 31 31 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 32 Proc PlotSmearedPeak_Gauss (str)32 Proc PlotSmearedPeak_Gauss_Model(str) 33 33 String str 34 34 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Peak_Lorentz_model.ipf
r151 r153 5 5 // J. Barker, 2-10-99 6 6 //////////////////////////////////// 7 Proc PlotPeak_Lorentz (num,qmin,qmax)7 Proc PlotPeak_Lorentz_Model(num,qmin,qmax) 8 8 Variable num=512, qmin=.001, qmax=.7 9 9 Prompt num "Enter number of data points for model: " … … 30 30 //////////////////////////////////////////////////// 31 31 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 32 Proc PlotSmearedPeak_Lorentz (str)32 Proc PlotSmearedPeak_Lorentz_Model(str) 33 33 String str 34 34 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/PolyHardSphereInten.ipf
r151 r153 25 25 Edit parameters_phs,coef_phs 26 26 Variable/G root:g_phs 27 g_phs := PolyHardSphere Intensity(coef_phs,ywave_phs,xwave_phs)28 // ywave_phs := PolyHardSphere Intensity(coef_phs,xwave_phs)27 g_phs := PolyHardSpheres(coef_phs,ywave_phs,xwave_phs) 28 // ywave_phs := PolyHardSpheres(coef_phs,xwave_phs) 29 29 Display ywave_phs vs xwave_phs 30 30 ModifyGraph log=1,marker=29,msize=2,mode=4 … … 70 70 71 71 //AAO version 72 Function PolyHardSphere Intensity(cw,yw,xw) : FitFunc72 Function PolyHardSpheres(cw,yw,xw) : FitFunc 73 73 Wave cw,yw,xw 74 74 75 #if exists("PolyHardSphere IntensityX")76 yw = PolyHardSphere IntensityX(cw,xw)75 #if exists("PolyHardSpheresX") 76 yw = PolyHardSpheresX(cw,xw) 77 77 #else 78 yw = fPolyHardSphere Intensity(cw,xw)78 yw = fPolyHardSpheres(cw,xw) 79 79 #endif 80 80 return(0) … … 94 94 // 95 95 /////////////////////////// 96 Function fPolyHardSphere Intensity(w,k) : FitFunc96 Function fPolyHardSpheres(w,k) : FitFunc 97 97 Wave w // the coefficient wave 98 98 Variable k // the x values, as a variable (single k is OK) … … 210 210 211 211 ////the name of your unsmeared model is the first argument 212 Smear_Model_20(PolyHardSphere Intensity,s.coefW,s.xW,s.yW,s.resW)212 Smear_Model_20(PolyHardSpheres,s.coefW,s.xW,s.yW,s.resW) 213 213 214 214 return(0) -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/Power_Law_model.ipf
r151 r153 5 5 // J. Barker, 2-10-99 6 6 ////////////////////////////////// 7 Proc PlotPower_Law (num,qmin,qmax)7 Proc PlotPower_Law_Model(num,qmin,qmax) 8 8 Variable num=512, qmin=.001, qmax=.2 9 9 Prompt num "Enter number of data points for model: " … … 31 31 //////////////////////////////////////////////////// 32 32 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 33 Proc PlotSmearedPower_Law (str)33 Proc PlotSmearedPower_Law_Model(str) 34 34 String str 35 35 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 66 66 67 67 //AAO version 68 Function Power_Law_ model(cw,yw,xw) : FitFunc68 Function Power_Law_Model(cw,yw,xw) : FitFunc 69 69 Wave cw,yw,xw 70 70 71 #if exists("Power_Law_ modelX")72 yw = Power_Law_ modelX(cw,xw)71 #if exists("Power_Law_ModelX") 72 yw = Power_Law_ModelX(cw,xw) 73 73 #else 74 yw = fPower_Law_ model(cw,xw)74 yw = fPower_Law_Model(cw,xw) 75 75 #endif 76 76 return(0) 77 77 End 78 78 79 Function fPower_Law_ model(w,x) : FitFunc79 Function fPower_Law_Model(w,x) : FitFunc 80 80 Wave w 81 81 Variable x -
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/UniformEllipsoid.ipf
r151 r153 55 55 SetScale d,0,0,"1/cm",smeared_eor 56 56 57 Variable/G root:gs_eor=057 Variable/G gs_eor=0 58 58 gs_eor := fSmearedEllipsoidForm(smear_coef_eor,smeared_eor,smeared_qvals) 59 59
Note: See TracChangeset
for help on using the changeset viewer.