StatisticalTests. More...
Public Member Functions | |
def | do_test |
def | get_N_bins |
def | is_empty |
Static Public Attributes | |
name = None |
StatisticalTests.
Definition at line 299 of file utils_v2.py.
def utils_v2::StatisticalTest::do_test | ( | self, | |
h1, | |||
h2 | |||
) |
Reimplemented in utils_v2::KolmogorovTest, and utils_v2::Chi2Test.
Definition at line 316 of file utils_v2.py.
00317 : 00318 if not h1 or not h2: 00319 raise ComparisonError('Missing histogram') 00320 if type(h1) != type(h2): 00321 return -104 # raise ComparisonError('Histograms have different types') 00322 if not h1.InheritsFrom('TH1'): 00323 return -105 # raise ComparisonError('Object is not a histogram') 00324 if self.is_empty(h1) or self.is_empty(h2): 00325 return 1 00326 h1_bins = self.get_N_bins(h1) 00327 if h1_bins != self.get_N_bins(h2): 00328 return -103 # raise CoparisonError('Ranges of histograms are different') 00329
def utils_v2::StatisticalTest::get_N_bins | ( | self, | |
h | |||
) |
Definition at line 302 of file utils_v2.py.
def utils_v2::StatisticalTest::is_empty | ( | self, | |
h | |||
) |
Definition at line 310 of file utils_v2.py.
utils_v2::StatisticalTest::name = None [static] |
Reimplemented in utils_v2::KolmogorovTest, and utils_v2::Chi2Test.
Definition at line 300 of file utils_v2.py.