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

x-ranged rolling average #1030

Open
mirabilos opened this issue Jan 18, 2023 · 2 comments
Open

x-ranged rolling average #1030

mirabilos opened this issue Jan 18, 2023 · 2 comments

Comments

@mirabilos
Copy link
Collaborator

The current rolling average uses a fixed number of data points.

Would it be feasible to add a different mode in which it averages over a settable Δx (for use with nōn-equidistributed data, like real-life network packet traces, where you can have nothing for short time, then bursts)?

Does anyone have any idea whether this is feasible and as to the math behind this? (My school never offered statistics.)

@danvk
Copy link
Owner

danvk commented Jan 18, 2023

Yes, it's a good idea. The obvious use case that springs to mind is showing a weekly average. You can probably do this already using a DataHandler (see #249, particularly the linked doc).

One thing to watch out for: if your data is irregular (say mostly on weekdays with gaps on weekends) then that irregularity will still show up after rolling (since you'll wind up with all the same x-values). It may be preferable to calculate weekly averages on your own as a pre-processing step.

@mirabilos
Copy link
Collaborator Author

mirabilos commented Jan 19, 2023 via email

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

No branches or pull requests

2 participants