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

Interface, handling doubles and NaNs #2

Open
derfugu opened this issue May 19, 2016 · 0 comments
Open

Interface, handling doubles and NaNs #2

derfugu opened this issue May 19, 2016 · 0 comments

Comments

@derfugu
Copy link

derfugu commented May 19, 2016

I think to be useful the algorithm would have to be able to handle NaNs and floating points. I played around with the tester.cc a little bit. What I needed was a function

Vector slidingMedian(Vector x, int h) which returns the sliding medians over x for a given window length h. I tweaked the code a bit to work with doubles and expose that function (I hard wired the sorting algorithm to sort, that may be an (optional) third parameter). But then I realized it cannot handle NaNs and that's a dealbreaker in practice.

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