CMS 3D CMS Logo

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

Classes

class  QGLikelihoodCalculator
 

Functions

def getBinNumber
 

Function Documentation

def QGLikelihoodCalculator.getBinNumber (   bins,
  value 
)

Definition at line 8 of file QGLikelihoodCalculator.py.

References sistrip::SpyUtilities.range().

Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator.findEntry().

8 
9 def getBinNumber( bins, value ) :
10 
11  if value<bins[0] or value>bins[len(bins)-1]: return False
12  for i in range(0,len(bins)-1):
13  if value>bins[i] and value<bins[i+1]:
14  return i
15 
16  return -1
17 
18 
19 
const uint16_t range(const Frame &aFrame)