ATLAS Offline Software
distributions.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2 
3 import datatable as dt
4 import numpy as np
5 def CVM(cvm, mean, var):
6  z = (cvm - mean) / (45. * var)**0.5 + 1./6
7  z_i = dt.cvm_ztable
8  p_i = dt.cvm_ptable
9  if z > z_i[-1]:
10  return 1.
11  elif z < z_i[0]:
12  return 0.
13  else:
14  return np.interp(z, z_i, p_i)
python.distributions.CVM
def CVM(cvm, mean, var)
Definition: distributions.py:5