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

use more stable var, std algo #386

Open
dcherian opened this issue Aug 14, 2024 · 0 comments
Open

use more stable var, std algo #386

dcherian opened this issue Aug 14, 2024 · 0 comments

Comments

@dcherian
Copy link
Collaborator

dcherian commented Aug 14, 2024

https://www.johndcook.com/blog/2008/09/26/comparing-three-methods-of-computing-standard-deviation/
https://www.johndcook.com/blog/2008/09/28/theoretical-explanation-for-numerical-results/

will require upstream fixes to npg too.

This should let us delete this SKIPPED_FUNCS bit:

flox/tests/strategies.py

Lines 35 to 39 in 4dbadae

SKIPPED_FUNCS = ["var", "std", "nanvar", "nanstd"]
func_st = st.sampled_from(
[f for f in ALL_FUNCS if f not in NON_NUMPY_FUNCS and f not in SKIPPED_FUNCS]
)

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

No branches or pull requests

1 participant