CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
QGLikelihoodCalculator Namespace Reference

Classes

class  QGLikelihoodCalculator
 

Functions

def getBinNumber
 

Function Documentation

def QGLikelihoodCalculator.getBinNumber (   bins,
  value 
)

Definition at line 5 of file QGLikelihoodCalculator.py.

Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator.findEntry().

5 
6 def getBinNumber( bins, value ) :
7 
8  if value<bins[0] or value>bins[len(bins)-1]: return False
9  for i in range(0,len(bins)-1):
10  if value>bins[i] and value<bins[i+1]:
11  return i
12 
13  return -1
14 
15 
16