-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rolling argmax and argmin functions #2
Comments
Hello, |
Yeah, when calculating some factors in quant finance, the rolling argmin/argmax functions are very useful. |
I understand the interest! I will also move the repository to https://github.com/online-ml and probably rename the library. |
Sorry that I failed to implement argmin/argmax functions by myself. It would be very nice of you to implement these functions anytime you like. |
No problem 😄 I'll do it! I'll ping you when it's done. |
Hi, do you have any progress on this issue? I'm wondering if the argmin/argmax function could only be implemented by binary search the item each time on updating. |
Hey, I'm on vacation; I add this issue to my todo list 😄 |
Sorry to bother you. Have a good time! |
Hi @testforvln, |
That's great! I thought of maintaining another sorted order number for sorted_window, but every update would cost O(n) for maintaining the sequence. Your solution of caching is very suitable for this argmin function. |
Could you add rolling argmax and argmin functions? Just to return the position of the max/min value.
The text was updated successfully, but these errors were encountered: