Ignore:
Timestamp:
Apr 8, 2011 12:58:26 PM (12 years ago)
Author:
srkline
Message:

Removed Smear_Model_N_AAO() and reverted back to the non-AAO version. The AAO version is not cursor-aware, and then smeares incorrectly when using cursors. The AAO version can be corrected in the future if necessary. Using the Debye Sphere functions as fit functions need AAO smearing to be useable at all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/GaussUtils_v40.ipf

    r794 r797  
    810810                if (va<0) 
    811811                        va=0            //to avoid numerical error when  va<0 (-ve q-value) 
    812                         Print "truncated Gaussian at nominal q = ",x 
     812//                      Print "truncated Gaussian at nominal q = ",x 
    813813                endif 
    814814                vb = 3*i_sigq + i_qbar 
     
    906906                endif 
    907907         
    908 //              answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
    909                 Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
     908                answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
     909//              Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
    910910                 
    911911                Return (0) 
     
    956956                endif 
    957957         
    958 //              answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
    959                 Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
     958                answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
     959//              Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
    960960 
    961961                Return (0) 
     
    10121012                endif 
    10131013         
    1014 //              answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
    1015                 Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
     1014                answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
     1015//              Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
    10161016 
    10171017                Return (0) 
     
    10601060                endif 
    10611061         
    1062 //              answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
    1063                 Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
     1062                answer = Smear_Model_N(fcn,w,x,resW,weightW,abscissW,nord) 
     1063//              Smear_Model_N_AAO(fcn,w,x,resW,weightW,abscissW,nord,answer) 
    10641064 
    10651065                Return (0) 
     
    16121612// provides some speedup. 
    16131613// 
    1614 // 
    1615 // 
    1616 // "backwards" wrapped to reduce redundant code 
    1617 // there are only 4 choices of N (5,10,20,76) for smearing 
     1614//// APRIL 2011 *** this function is NOT YET CURSOR-AWARE. This needs to be addressed before it can be used 
    16181615// 
    16191616// 
Note: See TracChangeset for help on using the changeset viewer.