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

sglite plugin: fixed output of single to respond to input time window #195

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

JanT112
Copy link

@JanT112 JanT112 commented Jan 17, 2016

The current develop version of the sqlite plugin function _single(), corresponding to the item function .db() works reasonably accurate as long as the "time between item updates" << "time window called in the .db() function". To keep the processing demand low, the average is calculated in the sql call. This however results in a time resolution equal to time between item updates and causes the calculation error to be significant when "time between item updates" is close to or less than the "time window called in the .db() function".

This pull-request improves the result using 1-2 additional simple sql queries to correct for the parts laying outside of the "time window called in the .db() function".

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