Sitelet https://web.archive.org/web/20200911162208im_/https://github.com/IntelPython/sdc/issues/45
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

Series.cov and Series.corr yield invalid results for complex-typed argument #45

Open
quasilyte opened this issue Sep 7, 2018 · 0 comments
Open

Comments

@quasilyte
Copy link
Contributor

@quasilyte quasilyte commented Sep 7, 2018

Given these series:

S1 = pandas.Series([1.0, -1.5]),
S2 = pandas.Series([complex(-4.5, 1.0), complex(3.0, 1.5)])

The hpat and "normal" functions return different results:

# corr
hpat_func(S1, S2) # => (-1+0j)
test_impl(S1, S2) # => (-0.9977851578566089+0.06651901052377393j)

# cov
hpat_func(S1, S2) # => (-9.375-0.625j)
test_impl(S1, S2) # => (-9.375+0.625j)

Functions that should be fixes are probably _column_corr_impl and _column_cov_impl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.