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

[BUG] get wrong result in move_mean #377

Open
rogerdehe opened this issue Mar 19, 2021 · 2 comments
Open

[BUG] get wrong result in move_mean #377

rogerdehe opened this issue Mar 19, 2021 · 2 comments
Assignees
Labels

Comments

@rogerdehe
Copy link

rogerdehe commented Mar 19, 2021

I find a strange thing,

bd.move_mean([1.9272201201869577, 0.0, 0.0, 0.0], 3)

this print:

[           nan,            nan, 6.36527364e-01, 6.42406707e-01, 7.40148683e-17]

the last result should be 0 instead of 7.40148683e-17 actually.

With the slow version https://github.com/pydata/bottleneck/blob/master/bottleneck/slow/move.py#L26 here:
it results

[       nan        nan 0.63652736 0.64240671 0.        ]
@Jerryhe1995
Copy link

same issue

@huaiweicheng
Copy link

Same issue here, any improvements?

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

No branches or pull requests

4 participants