From 6eec749b27cf8787177585df601795d92f31e643 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 16 Mar 2006 18:00:56 +0000 Subject: Add extra arguments to corrcoef. --- numpy/lib/function_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 37bcaab55..2c623cefe 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -670,10 +670,10 @@ def cov(m,y=None, rowvar=1, bias=0): else: return (dot(X,X.transpose().conj())/fact).squeeze() -def corrcoef(x, y=None): +def corrcoef(x, y=None, rowvar=1, bias=0): """The correlation coefficients """ - c = cov(x, y) + c = cov(x, y, rowvar, bias) try: d = diag(c) except ValueError: # scalar covariance -- cgit v1.2.1