Dynamic Weighted Moving Average Float

Dynamic Weighted Moving Average Float

Windows
MacOS
Linux

Calculates the new value in a weighted moving average series using the previous value and a weight range. The weight range is used to dynamically adjust based upon distance between the samples This allows you to smooth a value more aggressively for small noise and let large movements be smoothed less (or vice versa)

Target is Kismet Math Library

Dynamic Weighted Moving Average Float
Current Sample
0.0
Previous Sample
0.0
Max Distance
0.0
Min Weight
0.0
Max Weight
0.0
Return Value
0.0

Inputs

Current Sample
Float

The value to blend with the previous sample to get a new weighted value

Previous Sample
Float

The last value from the series

Max Distance
Float

Distance to use as the blend between min weight or max weight

Min Weight
Float

The weight use when the distance is small

Max Weight
Float

The weight use when the distance is large

Outputs

Return Value
Float

the next value in the series

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss