-
Notifications
You must be signed in to change notification settings - Fork 722
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
recovery: windowed min and max filter implementation #398
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started making some comments but then as I worked through the code, it seems like its design is made really hard by MinmaxSample::time
being an Option
. No code seems to care about the None
case, it just unwraps the Option which can result in a panic. All the test cases seem to require the reset
method to be used which initializes the time
. I think it would be easier to lose the option and make a Minmax::new()
method that is used to initialize everything
f806c43
to
6895d5c
Compare
Addressed all the comments. Please review, thanks |
6895d5c
to
a35728f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments.
95356b6
to
d650b97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will close #305 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good now, added a few more comments to try and make things a bit clearer.
9cceb4a
to
627e2aa
Compare
Port google opensourced min-max filter code based on Kathleen Nichols' algorithm for tracking the minimum (or maximum) value of a data stream over some fixed time interval. Closes #305.
627e2aa
to
df9b6cd
Compare
For whatever reason rustc nightly seems to be crashing which causes the Travis CI builds to fail. Though that's probably unrelated to these changes (the crash happens when building |
FTR, I created rust-lang/rust#70041 to track the compiler crash. |
Port google opensourced min-max filter code based on
Kathleen Nichols' algorithm for tracking the minimum
(or maximum) value of a data stream over some fixed
time interval.