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

[Feature Request] Moving RMS Filter #510

Closed
Bartimaeus- opened this issue Sep 6, 2021 · 2 comments
Closed

[Feature Request] Moving RMS Filter #510

Bartimaeus- opened this issue Sep 6, 2021 · 2 comments
Assignees

Comments

@Bartimaeus-
Copy link
Contributor

Request for a Moving RMS filter.

Pretty much the same thing as the existing Moving Average filter but calculating root mean square instead:

image

This is useful for analyzing power and current, especially for data that changes sign like in motor drives with regen or AC power circuits

@Bartimaeus-
Copy link
Contributor Author

I've created an example csv dataset with Python that has a sine wave and applied moving RMS for window size of 10,25,100. I've also created a custom timeseries Lua script for moving RMS.

Screenshot below shows the original sine wave as well as the moving RMS from the Python script and the Lua script, with the difference in values for the two plotted in the lower chart, which looks small enough to be rounding error:
image

This should aid anyone who wants to do moving RMS or for testing implementation of the filter in PlotJuggler.

@facontidavide feel free to bundle that Lua function with PlotJuggler if it's up to snuff and desired

Files are attached:
PlotJuggler_movingRMS_Test.zip

@facontidavide facontidavide self-assigned this Sep 19, 2021
facontidavide added a commit that referenced this issue Sep 20, 2021
@facontidavide
Copy link
Owner

Done :)

image

image

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