diff options
author | Joseph Fox-Rabinovitz <madphysicist@users.noreply.github.com> | 2016-08-26 12:21:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-26 12:21:02 -0400 |
commit | 3bc03ae143b5321abf5ab2fd6676286d4c090716 (patch) | |
tree | 18774468065215d3878048fd67206e3af0e3d5a7 /numpy/lib | |
parent | 90668d0e740e30102fa3d0a1a72b485ebe9d99c3 (diff) | |
download | numpy-3bc03ae143b5321abf5ab2fd6676286d4c090716.tar.gz |
DOC: Fixed documented dimension of return value
The first dimension of the return value depends on the degree of the polynomial, not the number of elements being used in the fit.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/polynomial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index d96b8969f..d178ba4b3 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -431,7 +431,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False): Returns ------- - p : ndarray, shape (M,) or (M, K) + p : ndarray, shape (deg + 1,) or (deg + 1, K) Polynomial coefficients, highest power first. If `y` was 2-D, the coefficients for `k`-th data set are in ``p[:,k]``. |