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

Top N-precentile #8

Open
Paxy opened this issue Feb 3, 2020 · 2 comments
Open

Top N-precentile #8

Paxy opened this issue Feb 3, 2020 · 2 comments
Labels
enhancement New feature or request.

Comments

@Paxy
Copy link

Paxy commented Feb 3, 2020

Can I suggest you implement an N-percentile average feature?
It will be used to get more accurate average reading from not so accurate sensors like PM sensors.
The way to implement is just simple to sort the data range by value and drop some percent of top/bottom values before calculating the average.

Configurable variables should be:

  • N percent
  • Drop from: top, bottom, both(N/2 each)
@Paxy Paxy added the enhancement New feature or request. label Feb 3, 2020
@Limych
Copy link
Owner

Limych commented Jun 12, 2020

Such calculations require a double pass of the algorithm over all source data. And this can very negatively affect the work of HA. I will try to come up with something, but I doubt that it will work out.

@Paxy
Copy link
Author

Paxy commented Jun 12, 2020

Perhaps it should be available only for a limited array of values to avoid a huge impact on HA performances.
For ex. the option is only available if sample_limit is less than 100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants