# Changeset 855 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization

Ignore:
Timestamp:
May 2, 2012 10:35:55 AM (11 years ago)
Message:

Added a menu option in the SANS Models ->1D to show the correlation matrix. This brings up a panel that shows the values along with the current parameter names. The help button links directly to the WM help file that explains the calculation. May want to add coloring for warning, if anyone uses it...

Most important would be to make it more visible and in the users line of sight if there is a problem...

File:
1 edited

Unmodified
Added
Removed
• ## sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationPanels.ipf

 r851 endfor          //loop over rows // now get a running average of muP, Po, and the errors avg_muP = sum_muP/numRows avg_Po = sum_Po/numRows err_avg_muP = sqrt(err_avg_muP) / numRows err_avg_Po = sqrt(err_avg_Po) / numRows ////// 26 APR 12 -- why was I getting a running average of these values??               not sure, so I commented them out... //                              they aren't returned or used anywhere... //                      // now get a running average of muP, Po, and the errors //                      avg_muP = sum_muP/numRows //                      avg_Po = sum_Po/numRows //                      err_avg_muP = sqrt(err_avg_muP) / numRows //                      err_avg_Po = sqrt(err_avg_Po) / numRows // // //                      Printf "Average muP = %g +/- %g (%g%)\r",avg_muP,err_avg_muP,err_avg_muP/avg_muP*100 //                      Printf "Average Po = %g +/- %g (%g%)\r",avg_Po,err_avg_Po,err_avg_Po/avg_Po*100 // //              E  26 APR 12 //                      str = "muP=2,err_muP=0,P0=0.6,err_P0=0,T0=asdf,gamma=200,err_gamma=0," //                      Note w, noteStr Printf "Average muP = %g +/- %g (%g%)\r",avg_muP,err_avg_muP,err_avg_muP/avg_muP*100 Printf "Average Po = %g +/- %g (%g%)\r",avg_Po,err_avg_Po,err_avg_Po/avg_Po*100 //update the global values for display (not these, but after the fit)
Note: See TracChangeset for help on using the changeset viewer.