-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Adds difference function #547
Conversation
mboelstra
commented
May 16, 2014
- Adds a new aggregation function called range
- Bugfix in DerivativeAggregator
Can you add tests for both the bug fix and the range function? |
Hi Paul, No problem! But could you help me and point me the proper file(s) or test suite(s) for adding these tests? It seems like I can’t find the other/existing aggregation tests… -Matthijs On 16 mei 2014, at 16:07, Paul Dix notifications@github.com wrote:
|
Sure, look at
Or run the whole suite with
Thanks @mboelstra! |
@pauldix I've added the tests you requested. Please review |
@mboelstra do you mind signing the CLA so I can merge your pr into master. |
@jvshahid The CLA is signed |
Just a couple of things before I merge the pr:
|
Good questions:
Consider the example where a kWh-meter can count in both directions and within a time bucket the total goes up first, then down and then up again (e.g.: 5,6,7,6,5,4,3,2,1,2,3,4,5,6,7,8,9,10). The current implementation is not perfect since it fails in cases where the time interval of the group by function equals the time between each point and the points line-up with the bucket times. I hope my explanation is clear enough (since I’m not a native English speaker). On 20 mei 2014, at 18:49, John Shahid notifications@github.com wrote:
|
Oh i c, i missed the block comment. Can you please change that to line comments and squash your commits in one commit. |
Ok, let's call it difference if it's just a difference between the first and last points. I'll merge the pr as soon as these changes are made. Thanks for your contribution. |
Much better to call it difference. Looked at the R documentation and they also call this a difference function ;) . Also squashed everything to one commit. |
Awesome, i'll wait for travis ci to finish testing and will merge it if everything looks fine. Thanks again. |