Changeset 258
- Timestamp:
- Feb 12, 2008 4:37:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v4.00/USANS_SlitSmearing_v40.ipf
r252 r258 66 66 String baseStr 67 67 68 NVAR USANS_m,USANS_slope_numpnts 68 // NVAR USANS_m,USANS_slope_numpnts 69 NVAR USANS_m = $("root:"+baseStr+":USANS_m") 70 NVAR USANS_slope_numpnts = $("root:"+baseStr+":USANS_slope_numpnts") 71 69 72 70 73 // Variable slope=-4 … … 108 111 Variable nend 109 112 110 NVAR USANS_m 113 // NVAR USANS_m 114 NVAR USANS_m = $("root:"+baseStr+":USANS_m") 111 115 112 116 Wave iw = $(basestr+"_i") … … 144 148 145 149 Make/O/D P_coef={0,1,-4} //input 146 // Make/O/T Constr={"K2<0","K2 > -20"}150 Make/O/T Constr={"K2<0","K2 > -8"} 147 151 //(set background to zero and hold fixed) 148 CurveFit/H="100" Power kwCWave=P_coef iw[(num-1-nend),(num-1)] /X=qw /W=sw 152 // initial guess 153 P_coef[1] = iw[num-1]/qw[num-1]^P_coef[2] 154 155 CurveFit/H="100" Power kwCWave=P_coef iw[(num-1-nend),(num-1)] /X=qw /W=sw /C=constr 149 156 extr_hqi=P_coef[0]+P_coef[1]*extr_hqq^P_coef[2] 150 157 … … 164 171 165 172 SVAR basestr = root:Packages:NIST:USANS_basestr 166 NVAR USANS_m, USANS_slope_numpnts 173 174 NVAR USANS_m = $("root:"+baseStr+":USANS_m") 175 NVAR USANS_slope_numpnts = $("root:"+baseStr+":USANS_slope_numpnts") 167 176 168 177 strswitch (ctrlName)
Note: See TracChangeset
for help on using the changeset viewer.