Skip to content
Snippets Groups Projects
Commit 9f71e9ae authored by Michele Maris's avatar Michele Maris
Browse files

U

parent 73b28975
No related branches found
No related tags found
No related merge requests found
...@@ -41,3 +41,14 @@ class CumulativeOfData : ...@@ -41,3 +41,14 @@ class CumulativeOfData :
""" """
return np.interp(eff,self._eff,self._x,left=-np.infty,right=np.infty) 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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment