From a5b4a598d0ef164dba7e0876133c3ea78b96aab8 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 7 Jul 2010 04:31:51 +0000 Subject: ENH: Add ddof keyword to cov and corrcoef. Deprecate bias keyword. --- numpy/lib/tests/test_function_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/tests/test_function_base.py') diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 5d0f8aa45..6be1b204f 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -828,11 +828,11 @@ class TestCorrCoef(TestCase): B = array([[ 0.10377691, 0.5417086 , 0.49807457], [ 0.82872117, 0.77801674, 0.39226705], [ 0.9314666 , 0.66800209, 0.03538394]]) - assert_almost_equal(corrcoef(A), + assert_almost_equal(corrcoef(A, ddof=1), array([[ 1. , 0.9379533 , -0.04931983], [ 0.9379533 , 1. , 0.30007991], [-0.04931983, 0.30007991, 1. ]])) - assert_almost_equal(corrcoef(A, B), + assert_almost_equal(corrcoef(A, B, ddof=1), array([[ 1. , 0.9379533 , -0.04931983, 0.30151751, 0.66318558, 0.51532523], [ 0.9379533 , 1. , 0.30007991, -- cgit v1.2.1