summaryrefslogtreecommitdiff
path: root/numpy/polynomial/_polybase.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/polynomial/_polybase.py')
-rw-r--r--numpy/polynomial/_polybase.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/numpy/polynomial/_polybase.py b/numpy/polynomial/_polybase.py
index 59c380f10..5525b232b 100644
--- a/numpy/polynomial/_polybase.py
+++ b/numpy/polynomial/_polybase.py
@@ -694,7 +694,7 @@ class ABCPolyBase(abc.ABC):
Returns
-------
new_series : series
- Contains the new set of coefficients.
+ New instance of series with trimmed coefficients.
"""
coef = pu.trimcoef(self.coef, tol)
@@ -757,9 +757,6 @@ class ABCPolyBase(abc.ABC):
Conversion between domains and class types can result in
numerically ill defined series.
- Examples
- --------
-
"""
if kind is None:
kind = self.__class__
@@ -939,11 +936,11 @@ class ABCPolyBase(abc.ABC):
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
window : {[beg, end]}, optional