accumulators icon indicating copy to clipboard operation
accumulators copied to clipboard

How to implement a new statistical class rolling_weighted_mean?

Open JaydenFish opened this issue 1 year ago • 1 comments

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

JaydenFish avatar Aug 31 '23 15:08 JaydenFish

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.

yuvalif avatar Sep 03 '23 14:09 yuvalif