Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Statistics] fix type determination in corm #32271

Merged
merged 5 commits into from
Jul 24, 2019
Merged

[Statistics] fix type determination in corm #32271

merged 5 commits into from
Jul 24, 2019

Conversation

dkarrasch
Copy link
Member

Fixes #32264. This avoids overflow (and subsequently a method error "sqrt of negative number") for smaller integer types at the initialization step. I guess this is a bugfix...?

@nalimilan nalimilan added backport 1.0 bug Indicates an unexpected problem or unintended behavior statistics The Statistics stdlib module stdlib Julia's standard library labels Jun 12, 2019
@nalimilan
Copy link
Member

Thanks! Could you add a test for the fix?

@KristofferC KristofferC mentioned this pull request Jun 14, 2019
32 tasks
@KristofferC KristofferC mentioned this pull request Jul 16, 2019
14 tasks
@andreasnoack andreasnoack merged commit a8a567e into JuliaLang:master Jul 24, 2019
@dkarrasch dkarrasch deleted the dk/correlation branch July 25, 2019 13:22
JeffBezanson pushed a commit that referenced this pull request Jul 30, 2019
* [Statistics] fix type determination in corm

* remove obsolete typeof

* use first element(s) for type initialization

* add test for inhomogeneous data and for overflow

* fix test with NaN

(cherry picked from commit a8a567e)
KristofferC pushed a commit that referenced this pull request Aug 26, 2019
* [Statistics] fix type determination in corm

* remove obsolete typeof

* use first element(s) for type initialization

* add test for inhomogeneous data and for overflow

* fix test with NaN

(cherry picked from commit a8a567e)
@KristofferC KristofferC mentioned this pull request Aug 26, 2019
55 tasks
KristofferC pushed a commit that referenced this pull request Aug 26, 2019
* [Statistics] fix type determination in corm

* remove obsolete typeof

* use first element(s) for type initialization

* add test for inhomogeneous data and for overflow

* fix test with NaN

(cherry picked from commit a8a567e)
@KristofferC KristofferC added bugfix This change fixes an existing bug and removed bug Indicates an unexpected problem or unintended behavior labels Sep 9, 2019
KristofferC pushed a commit that referenced this pull request Feb 20, 2020
* [Statistics] fix type determination in corm

* remove obsolete typeof

* use first element(s) for type initialization

* add test for inhomogeneous data and for overflow

* fix test with NaN

(cherry picked from commit a8a567e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug statistics The Statistics stdlib module stdlib Julia's standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Statistics.cor throws domain error with specific data
5 participants