Skip to content

Use the next bucket's first observation if available - #582

Open
daniel-slaugh wants to merge 1 commit into
release/v2.0.0from
581-agg-bucket
Open

daniel-slaugh wants to merge 1 commit into
release/v2.0.0from
581-agg-bucket

Conversation

@daniel-slaugh

Copy link
Copy Markdown
Contributor

Fixes #581

The policy I adopted is to use the next bucket's first value for interpolation if available. For example, with time-weighted mean, if we're aggregating to daily on the day the data were collected, then we may get an average of 5 (tomorrow's data don't exist yet). The next day's data come in and we recompute. Because we interpolate using the next bucket's first data point, the new average is 5.33.

It's a bit of an edge case, but will be a more accurate daily mean overall.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant