From 9f71e9aef2282bbcc3786780cfece77ffd704c3a Mon Sep 17 00:00:00 2001
From: "Michele.Maris" <michele.maris@inaf.it>
Date: Tue, 11 Jun 2024 10:38:14 +0200
Subject: [PATCH] U

---
 src/yapsut/stats.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/yapsut/stats.py b/src/yapsut/stats.py
index de76405..bee75b1 100644
--- a/src/yapsut/stats.py
+++ b/src/yapsut/stats.py
@@ -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()
-- 
GitLab