summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2019-10-18 11:14:59 +0200
committerGitHub <noreply@github.com>2019-10-18 11:14:59 +0200
commit49deaff355356f491725d1f304da9e4f2e30ee76 (patch)
tree82c0610a6c920c30fc80be134c8955bdedf1b762 /numpy/lib/polynomial.py
parentd8a7c44b33221bb7b6fd926c93a9bca38ca45f69 (diff)
parent5b4eee07263ea909d52488509bbaa95f3ee19972 (diff)
downloadnumpy-49deaff355356f491725d1f304da9e4f2e30ee76.tar.gz
Merge pull request #14629 from sethtroisi/polyfit_doc
DOC: clarify residual in np.polyfit
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index 2c72f623c..3d07a0de4 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -479,10 +479,10 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
coefficients for `k`-th data set are in ``p[:,k]``.
residuals, rank, singular_values, rcond
- Present only if `full` = True. Residuals of the least-squares fit,
- the effective rank of the scaled Vandermonde coefficient matrix,
- its singular values, and the specified value of `rcond`. For more
- details, see `linalg.lstsq`.
+ Present only if `full` = True. Residuals is sum of squared residuals
+ of the least-squares fit, the effective rank of the scaled Vandermonde
+ coefficient matrix, its singular values, and the specified value of
+ `rcond`. For more details, see `linalg.lstsq`.
V : ndarray, shape (M,M) or (M,M,K)
Present only if `full` = False and `cov`=True. The covariance