summaryrefslogtreecommitdiff
path: root/numpy/ma/tests/test_extras.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-07-07 04:32:00 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-07-07 04:32:00 +0000
commit8bb282307481e208f972a72c5745c63e2404cd66 (patch)
tree31d7f1f3ff41423e5d0d90ba20b655072dc414b9 /numpy/ma/tests/test_extras.py
parentb1c994b77d851e49a1c62248b09aeaea5645fbdf (diff)
downloadnumpy-8bb282307481e208f972a72c5745c63e2404cd66.tar.gz
ENH: Add ddof keyword to masked versions of cov and corrcoef.
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r--numpy/ma/tests/test_extras.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index d6cda7e70..359e07446 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -528,6 +528,12 @@ class TestCorrcoef(TestCase):
def setUp(self):
self.data = array(np.random.rand(12))
+ def test_ddof(self):
+ "Test ddof keyword"
+ x = self.data
+ assert_almost_equal(np.corrcoef(x, ddof=0), corrcoef(x, ddof=0))
+
+
def test_1d_wo_missing(self):
"Test cov on 1D variable w/o missing values"
x = self.data