 Timestamp:
 Oct 18, 2019 1:08:35 PM (3 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sans/Dev/trunk/NCNR_User_Procedures/Analysis/VSANS/V_SWB_Beaucage.ipf
r1220 r1222 278 278 // define limits based on lo/mean, hi/mean of the wavelength distribution 279 279 // using the empirical definition, "middle" of the peaks 280 loLim = 3.37/ 5.3281 upLim = 20/ 5.3280 loLim = 3.37/kSuperWhiteBeam_Mean 281 upLim = 20/kSuperWhiteBeam_Mean 282 282 283 283 inten = V_IntegrOneLevelSWB_mid(w,loLim,upLim,x) … … 285 285 // why do I need this? Is this because this is defined as the mean of the distribution 286 286 // and is needed to normalize the integral? verify this on paper. 287 inten *= 5.3287 inten *= kSuperWhiteBeam_Mean 288 288 289 289 // normalize the integral 290 inten /= 30955// "middle" of peaks290 inten /= kSuperWhiteBeam_Normalization // "middle" of peaks 291 291 292 292 // additional normalization??? … … 321 321 // FUNCREF SANSModel_proto func = $funcStr 322 322 323 val = V_SuperWhiteBeamDist_mid(dum* 5.3)*OneLevelX(cw,qq/dum)323 val = V_SuperWhiteBeamDist_mid(dum*kSuperWhiteBeam_Mean)*OneLevelX(cw,qq/dum) 324 324 325 325 return (val) … … 350 350 // define limits based on lo/mean, hi/mean of the wavelength distribution 351 351 // using the empirical definition, "middle" of the peaks 352 loLim = 3.37/ 5.3353 upLim = 20/ 5.3352 loLim = 3.37/kSuperWhiteBeam_Mean 353 upLim = 20/kSuperWhiteBeam_Mean 354 354 355 355 inten = V_IntegrTwoLevelSWB_mid(w,loLim,upLim,x) … … 357 357 // why do I need this? Is this because this is defined as the mean of the distribution 358 358 // and is needed to normalize the integral? verify this on paper. 359 inten *= 5.3359 inten *= kSuperWhiteBeam_Mean 360 360 361 361 // normalize the integral 362 inten /= 30955// "middle" of peaks362 inten /= kSuperWhiteBeam_Normalization // "middle" of peaks 363 363 364 364 // additional normalization??? … … 393 393 // FUNCREF SANSModel_proto func = $funcStr 394 394 395 val = V_SuperWhiteBeamDist_mid(dum* 5.3)*TwoLevelX(cw,qq/dum)395 val = V_SuperWhiteBeamDist_mid(dum*kSuperWhiteBeam_Mean)*TwoLevelX(cw,qq/dum) 396 396 397 397 return (val) … … 422 422 // define limits based on lo/mean, hi/mean of the wavelength distribution 423 423 // using the empirical definition, "middle" of the peaks 424 loLim = 3.37/ 5.3425 upLim = 20/ 5.3424 loLim = 3.37/kSuperWhiteBeam_Mean 425 upLim = 20/kSuperWhiteBeam_Mean 426 426 427 427 inten = V_IntegrThreeLevelSWB_mid(w,loLim,upLim,x) … … 429 429 // why do I need this? Is this because this is defined as the mean of the distribution 430 430 // and is needed to normalize the integral? verify this on paper. 431 inten *= 5.3431 inten *= kSuperWhiteBeam_Mean 432 432 433 433 // normalize the integral 434 inten /= 30955// "middle" of peaks434 inten /= kSuperWhiteBeam_Normalization // "middle" of peaks 435 435 436 436 // additional normalization??? … … 465 465 // FUNCREF SANSModel_proto func = $funcStr 466 466 467 val = V_SuperWhiteBeamDist_mid(dum* 5.3)*ThreeLevelX(cw,qq/dum)467 val = V_SuperWhiteBeamDist_mid(dum*kSuperWhiteBeam_Mean)*ThreeLevelX(cw,qq/dum) 468 468 469 469 return (val) … … 496 496 // define limits based on lo/mean, hi/mean of the wavelength distribution 497 497 // using the empirical definition, "middle" of the peaks 498 loLim = 3.37/ 5.3499 upLim = 20/ 5.3498 loLim = 3.37/kSuperWhiteBeam_Mean 499 upLim = 20/kSuperWhiteBeam_Mean 500 500 501 501 inten = V_IntegrFourLevelSWB_mid(w,loLim,upLim,x) … … 503 503 // why do I need this? Is this because this is defined as the mean of the distribution 504 504 // and is needed to normalize the integral? verify this on paper. 505 inten *= 5.3505 inten *= kSuperWhiteBeam_Mean 506 506 507 507 // normalize the integral 508 inten /= 30955// "middle" of peaks508 inten /= kSuperWhiteBeam_Normalization // "middle" of peaks 509 509 510 510 // additional normalization??? … … 539 539 // FUNCREF SANSModel_proto func = $funcStr 540 540 541 val = V_SuperWhiteBeamDist_mid(dum* 5.3)*FourLevelX(cw,qq/dum)541 val = V_SuperWhiteBeamDist_mid(dum*kSuperWhiteBeam_Mean)*FourLevelX(cw,qq/dum) 542 542 543 543 return (val)
Note: See TracChangeset
for help on using the changeset viewer.