diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/maintenance/dataset/calculate.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/calculate.py b/wqflask/maintenance/dataset/calculate.py new file mode 100644 index 00000000..6aada827 --- /dev/null +++ b/wqflask/maintenance/dataset/calculate.py @@ -0,0 +1,7 @@ +import scipy.stats + +def correlation(a1, a2): + re = [] + re.append(scipy.stats.pearsonr(a1, a2)) + re.append(scipy.stats.spearmanr(a1, a2)) + return re |