diff options
author | Griffin Hosseinzadeh <g.hosseinzadeh90@gmail.com> | 2015-11-13 02:17:54 +0000 |
---|---|---|
committer | Griffin Hosseinzadeh <g.hosseinzadeh90@gmail.com> | 2015-11-13 02:17:54 +0000 |
commit | 35c2d9c9bb597be696005e325742fb8ae3e8f117 (patch) | |
tree | bab9d0c528f9280c8c083d823de5587fd4b8bafd | |
parent | f83d68bdac7bf0843f1601da25ac51f97983b1ef (diff) | |
download | numpy-35c2d9c9bb597be696005e325742fb8ae3e8f117.tar.gz |
add clarification of weights to documentation
-rw-r--r-- | numpy/lib/polynomial.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index de9376300..2f677438b 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -427,7 +427,8 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False): default) just the coefficients are returned, when True diagnostic information from the singular value decomposition is also returned. w : array_like, shape (M,), optional - weights to apply to the y-coordinates of the sample points. + Weights to apply to the y-coordinates of the sample points. For + gaussian uncertainties, use 1/sigma (not 1/sigma**2). cov : bool, optional Return the estimate and the covariance matrix of the estimate If full is True, then cov is not returned. |