Public Member Functions | |
def | __init__ |
def | do_test |
Public Attributes | |
name |
def utils::KS::__init__ | ( | self, | |
threshold | |||
) |
Reimplemented from utils::StatisticalTest.
def utils::KS::do_test | ( | self | ) |
Reimplemented from utils::StatisticalTest.
Definition at line 198 of file utils.py.
00199 : 00200 00201 # Calculate errors if not there... 00202 for h in self.h1,self.h2: 00203 w2s=h.GetSumw2() 00204 if w2s.GetSize()==0: 00205 h.Sumw2() 00206 00207 ## If errors are 0: 00208 #zero_errors=True 00209 #for h in self.h1,self.h2: 00210 #for ibin in xrange(Nbins1): 00211 #if h.GetBinError(ibin+1) >0: 00212 #zero_errors=False 00213 #break 00214 #if zero_errors: 00215 #return test_codes["ZERO_ERR"] 00216 00217 return self.h1.KolmogorovTest(self.h2) 00218 #-------------------------------------------------------------------------------
Reimplemented from utils::StatisticalTest.