Skip to content

Commit

Permalink
Merge pull request numpy#6681 from griffin-h/polyfit/weight_doc_update
Browse files Browse the repository at this point in the history
add clarification of weights to documentation for polyfit
  • Loading branch information
charris committed Nov 15, 2015
2 parents eeba2cb + 35c2d9c commit cf66c68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/lib/polynomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cf66c68

Please sign in to comment.