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

Improve Mean Calculation in Getpeak #4

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

Conversation

MOHAMMEDANSILKA
Copy link

@MOHAMMEDANSILKA MOHAMMEDANSILKA commented Dec 31, 2024

Instead of recalculating the mean from scratch every time, you can use a sliding mean formula for efficiency:

Instead of recalculating the mean from scratch every time, you can use a sliding mean formula for efficiency:

cpp
Copy code
@lorforlinux
Copy link
Member

Hey @MOHAMMEDANSILKA instead of adding the optimization to the comment, can you update the code and test it so that I can merge this pull request? If you do not have the hardware required, let us know. @Ritika8081 @Amanmahe @PayalLakra can help you test the code.

@lorforlinux
Copy link
Member

@CIumsy can you take a look into this, and provide an optimized solution to fix things.

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.

2 participants