CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes
utils_v2.KolmogorovTest Class Reference
Inheritance diagram for utils_v2.KolmogorovTest:
utils_v2.StatisticalTest

Public Member Functions

def do_test
 
- Public Member Functions inherited from utils_v2.StatisticalTest
def do_test
 
def get_N_bins
 
def is_empty
 

Static Public Attributes

string name = 'KS'
 
- Static Public Attributes inherited from utils_v2.StatisticalTest
 name = None
 

Detailed Description

Definition at line 333 of file utils_v2.py.

Member Function Documentation

def utils_v2.KolmogorovTest.do_test (   self,
  h1,
  h2 
)

Definition at line 336 of file utils_v2.py.

337  def do_test(self, h1, h2):
338  p_value = super(KolmogorovTest, self).do_test(h1, h2)
339  if p_value is not None:
340  return p_value
341 
342  for h in h1, h2:
343  if h.GetSumw2().GetSize() == 0:
344  h.Sumw2()
345  return h1.KolmogorovTest(h2)
346 

Member Data Documentation

string utils_v2.KolmogorovTest.name = 'KS'
static

Definition at line 334 of file utils_v2.py.

Referenced by config.CFG.__str__(), geometryComparison.GeometryComparison.createScript(), validation.Sample.digest(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), and VIDSelectorBase.VIDSelectorBase.initialize().