diff options
author | Jaime <jaime.frio@gmail.com> | 2015-12-18 20:18:50 +0100 |
---|---|---|
committer | Jaime <jaime.frio@gmail.com> | 2015-12-18 20:18:50 +0100 |
commit | f660a5cfac6ffeecea7bd4e4de4726f324f5af27 (patch) | |
tree | 014cf9aefadd0ef289de1f24f0466d1c2fbc9670 | |
parent | 25a54d59451c2dc2861cb4d254e0a1cc5a5f1192 (diff) | |
parent | 42ba464096da39bc267fd8cdfbcc4089c90f6686 (diff) | |
download | numpy-f660a5cfac6ffeecea7bd4e4de4726f324f5af27.tar.gz |
Merge pull request #6857 from charris/fixup-gh-6409
Fixup 6409, DOC, MAINT: Fix the numpy.ma.cov signature and documentation.
-rw-r--r-- | numpy/lib/function_base.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 541ad079c..8335b4fdb 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -2097,7 +2097,8 @@ class vectorize(object): return _res -def cov(m, y=None, rowvar=1, bias=0, ddof=None, fweights=None, aweights=None): +def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, + aweights=None): """ Estimate a covariance matrix, given data and weights. @@ -2118,14 +2119,14 @@ def cov(m, y=None, rowvar=1, bias=0, ddof=None, fweights=None, aweights=None): y : array_like, optional An additional set of variables and observations. `y` has the same form as that of `m`. - rowvar : int, optional - If `rowvar` is non-zero (default), then each row represents a + rowvar : bool, optional + If `rowvar` is True (default), then each row represents a variable, with observations in the columns. Otherwise, the relationship is transposed: each column represents a variable, while the rows contain observations. - bias : int, optional - Default normalization is by ``(N - 1)``, where ``N`` corresponds to the - number of observations given (unbiased estimate). If `bias` is 1, then + bias : bool, optional + Default normalization (False) is by ``(N - 1)``, where ``N`` is the + number of observations given (unbiased estimate). If `bias` is True, then normalization is by ``N``. These values can be overridden by using the keyword ``ddof`` in numpy versions >= 1.5. ddof : int, optional |