Ignore:
Timestamp:
Sep 22, 2010 9:25:37 PM (13 years ago)
Author:
srkline
Message:

Fixed bug #305. Linearized fit needed flag /I=0 since the weights are 1/err. This un-does a previous change where /I=1 was added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/LinearizedFits/LinearizedFits_v40.ipf

    r616 r746  
    518518        //try including residuals on the graph /R=residWave, explicitly place on new axis 
    519519        //if only /R used, residuals are automatically placed on graph 
    520          
    521         CurveFit line yAxisWave(xcsr(A),xcsr(B)) /I=1 /X=xAxisWave /W=yWtWave /D   
     520        // -- NOTE that A_Rescale_Data() calculates the weighting wave as 1/err (like the old days) so the flag is correctly 
     521        // /I=0, not /I=1 
     522         
     523        CurveFit line yAxisWave(xcsr(A),xcsr(B)) /I=0 /X=xAxisWave /W=yWtWave /D   
    522524        //CurveFit line yAxisWave(xcsr(A),xcsr(B)) /X=xAxisWave /W=yWtWave  /R /D   
    523525        ModifyGraph rgb(fit_yAxisWave)=(0,0,0) 
Note: See TracChangeset for help on using the changeset viewer.