Skip to content

Time.MovingAverage

Name Mandatory Description Default Type
⬅️ Input The floating point number to compute the average of. Float
Output ➡️ The average of the floating point number over the specified number of frames. Float
Window No The sample size in frames 16 Int
Clear No Set to true to clear the moving average none NoneVar(Bool)

This shard computes the average of a floating point number over a specified number of frames.

Details

Each frame the shard is called, it stores the value provided as input and returns the average. The number of samples it stores is specified by the number of frames given in the Window parameter.