Skip to content

BUG: Allow fitting of degree zero polynomials with Polynomial.fit#27234

Merged
charris merged 1 commit intonumpy:maintenance/2.1.xfrom
charris:backport-25984
Aug 17, 2024
Merged

BUG: Allow fitting of degree zero polynomials with Polynomial.fit#27234
charris merged 1 commit intonumpy:maintenance/2.1.xfrom
charris:backport-25984

Conversation

@charris
Copy link
Member

@charris charris commented Aug 17, 2024

Backport of #25984.

For degenerate domains in Polynomial.fit (which occurs when all independent datapoints are equal) we expand the domain. This allows fitting of degree zero polynomials.

Fixes #25982

Backport of numpy#25984.

For degenerate domains in Polynomial.fit (which occurs when all
independent datapoints are equal) we expand the domain. This allows
fitting of degree zero polynomials.

Fixes numpy#25982
@charris charris added this to the 2.1.0 release milestone Aug 17, 2024
@charris charris merged commit 3cf9394 into numpy:maintenance/2.1.x Aug 17, 2024
@charris charris deleted the backport-25984 branch August 17, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant