Skip to content

[math] Moving average/median/mode #14258

Open
@ferdymercury

Description

@ferdymercury

Feature description

It would be great to have in ROOT's TMath or TStatistics a function to calculate the moving average and the moving median and mode of an array. Functions that were greatly used in times of COVID cases tracking.

Alternatives considered

https://www.mathworks.com/help/matlab/ref/movmean.html
https://www.mathworks.com/help/matlab/ref/movmedian.html
https://www.boost.org/doc/libs/1_84_0/doc/html/accumulators/user_s_guide.html
https://github.com/root-project/root/blob/master/interpreter/llvm-project/llvm/tools/llvm-exegesis/lib/ProgressMeter.h#L26

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions