- Timestamp:
- May 2, 2012 10:35:55 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/Polarization/Pol_PolarizationPanels.ipf
r851 r855 815 815 816 816 endfor //loop over rows 817 818 // now get a running average of muP, Po, and the errors 819 avg_muP = sum_muP/numRows 820 avg_Po = sum_Po/numRows 821 err_avg_muP = sqrt(err_avg_muP) / numRows 822 err_avg_Po = sqrt(err_avg_Po) / numRows 823 817 818 819 ////// 26 APR 12 -- why was I getting a running average of these values?? not sure, so I commented them out... 820 // they aren't returned or used anywhere... 821 // // now get a running average of muP, Po, and the errors 822 // avg_muP = sum_muP/numRows 823 // avg_Po = sum_Po/numRows 824 // err_avg_muP = sqrt(err_avg_muP) / numRows 825 // err_avg_Po = sqrt(err_avg_Po) / numRows 826 // 827 // 828 // Printf "Average muP = %g +/- %g (%g%)\r",avg_muP,err_avg_muP,err_avg_muP/avg_muP*100 829 // Printf "Average Po = %g +/- %g (%g%)\r",avg_Po,err_avg_Po,err_avg_Po/avg_Po*100 830 // 831 // E 26 APR 12 832 824 833 // str = "muP=2,err_muP=0,P0=0.6,err_P0=0,T0=asdf,gamma=200,err_gamma=0," 825 834 … … 835 844 // Note w, noteStr 836 845 837 Printf "Average muP = %g +/- %g (%g%)\r",avg_muP,err_avg_muP,err_avg_muP/avg_muP*100 838 Printf "Average Po = %g +/- %g (%g%)\r",avg_Po,err_avg_Po,err_avg_Po/avg_Po*100 846 839 847 840 848 //update the global values for display (not these, but after the fit)
Note: See TracChangeset
for help on using the changeset viewer.