diff options
author | czgdp1807 <gdp.1807@gmail.com> | 2021-06-09 15:42:28 +0530 |
---|---|---|
committer | czgdp1807 <gdp.1807@gmail.com> | 2021-06-09 15:42:28 +0530 |
commit | ab01330d16ec77c2bc232ce696ce3ab2be9e51d0 (patch) | |
tree | 95e5ec28afe5c5484df97e0348b0484e865a4b7e /numpy/polynomial/chebyshev.py | |
parent | 3268a48ba4c0e7ae97dc358fa85e7c1b09d7cb21 (diff) | |
parent | b9a63f5052b0ba5a7a5b2616ddcc1754df177bd3 (diff) | |
download | numpy-ab01330d16ec77c2bc232ce696ce3ab2be9e51d0.tar.gz |
Merge branch 'main' into never_copy
Diffstat (limited to 'numpy/polynomial/chebyshev.py')
-rw-r--r-- | numpy/polynomial/chebyshev.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py index d24fc738f..210000ec4 100644 --- a/numpy/polynomial/chebyshev.py +++ b/numpy/polynomial/chebyshev.py @@ -1582,10 +1582,11 @@ def chebfit(x, y, deg, rcond=None, full=False, w=None): 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. If not None, the contribution of each point - ``(x[i],y[i])`` to the fit is weighted by ``w[i]``. Ideally the - weights are chosen so that the errors of the products ``w[i]*y[i]`` - all have the same variance. The default value is None. + Weights. If not None, the weight ``w[i]`` applies to the unsquared + residual ``y[i] - y_hat[i]`` at ``x[i]``. Ideally the weights are + chosen so that the errors of the products ``w[i]*y[i]`` all have the + same variance. When using inverse-variance weighting, use + ``w[i] = 1/sigma(y[i])``. The default value is None. .. versionadded:: 1.5.0 |