Rolling Average

Callable
RollingAverage

Maintains a rolling average over the last N values. Automatically manages the history buffer.

Type: Callable (has execution pins)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
NewValuefloatNewValue parameter
HistoryTArray<float>History parameter
WindowSizeint10WindowSize parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Smooth out noisy FPS readings for display.

Example 2

Stabilize aim-assist sensitivity over recent frames.