Commit 9f71e9ae authored by Michele Maris's avatar Michele Maris
Browse files

U

parent 73b28975
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -41,3 +41,14 @@ class CumulativeOfData :
      """
      return np.interp(eff,self._eff,self._x,left=-np.infty,right=np.infty)
   
class correlation_matrix :
   """ formatted correlation matrix for a 2D table:
      Correlation is computed between columns of Table
   """
   def __init__(self,Tab,Lbl) :
      """ Tab = table 
          Lbl = Name of each column"""
      self._pd=pd.DataFrame(Tab,Lbl)
   @property 
   def corr(self) :
      return self._pd.corr()