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

How to implement a new statistical class rolling_weighted_mean? #57

Open
JaydenFish opened this issue Aug 31, 2023 · 1 comment
Open

Comments

@JaydenFish
Copy link

It is complexed to mix rolling and weighted.
thanks very much.

@JaydenFish JaydenFish changed the title How to create a new statistical class rolling_weighted_mean? How to implement a new statistical class rolling_weighted_mean? Aug 31, 2023
@yuvalif
Copy link
Contributor

yuvalif commented Sep 3, 2023

it depends what kind of functionality you want.
you can just add a weight that will be stored together with the value and treated similarly to how "weighted_mean" is using the weight (just multiply with the value).
another option is to have fixed weights associated with the positions in the window (= a filter), here the implementation is different, but should not be too complex.

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