summaryrefslogtreecommitdiff
path: root/numpy/ma/extras.py
diff options
context:
space:
mode:
authorJarrod Millman <millman@berkeley.edu>2008-08-08 04:33:45 +0000
committerJarrod Millman <millman@berkeley.edu>2008-08-08 04:33:45 +0000
commit70ed0f238156680efba9b4028810f3aed486357b (patch)
treee5e0f42e586156ed74128cff0fe84404398b918b /numpy/ma/extras.py
parent0da812e06828be6749b1840b48c4f100dc3dfd68 (diff)
downloadnumpy-70ed0f238156680efba9b4028810f3aed486357b.tar.gz
ran reindent
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r--numpy/ma/extras.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py
index b84edf595..77b3d1923 100644
--- a/numpy/ma/extras.py
+++ b/numpy/ma/extras.py
@@ -401,7 +401,7 @@ def median(a, axis=None, out=None, overwrite_input=False):
Notes
-----
- Given a vector V with N non masked values, the median of V is the middle
+ Given a vector V with N non masked values, the median of V is the middle
value of a sorted copy of V (Vs) - i.e. Vs[(N-1)/2], when N is odd, or
{Vs[N/2 - 1] + Vs[N/2]}/2. when N is even.
@@ -550,9 +550,9 @@ def mask_cols(a, axis=None):
def dot(a,b, strict=False):
"""Return the dot product of two 2D masked arrays a and b.
- Like the generic numpy equivalent, the product sum is over the last
- dimension of a and the second-to-last dimension of b. If strict is True,
- masked values are propagated: if a masked value appears in a row or column,
+ Like the generic numpy equivalent, the product sum is over the last
+ dimension of a and the second-to-last dimension of b. If strict is True,
+ masked values are propagated: if a masked value appears in a row or column,
the whole row or column is considered masked.
Parameters
@@ -649,7 +649,7 @@ def _covhelper(x, y=None, rowvar=True, allow_masked=True):
"""
Private function for the computation of covariance and correlation
coefficients.
-
+
"""
x = ma.array(x, ndmin=2, copy=True, dtype=float)
xmask = ma.getmaskarray(x)
@@ -694,9 +694,9 @@ def cov(x, y=None, rowvar=True, bias=False, allow_masked=True):
Normalization is by (N-1) where N is the number of observations (unbiased
estimate). If bias is True then normalization is by N.
- By default, masked values are recognized as such. If x and y have the same
+ By default, masked values are recognized as such. If x and y have the same
shape, a common mask is allocated: if x[i,j] is masked, then y[i,j] will also
- be masked.
+ be masked.
Setting `allow_masked` to False will raise an exception if values are missing
in either of the input arrays.