Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/Runtime/Core/Math/FMath
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include | #include "Math/UnrealMathUtility.h" |
template<typename T>
static T WeightedMovingAverage
&40;
T CurrentSample,
T PreviousSample,
T Weight
&41;
Remarks
Calculates the new value in a weighted moving average series using the previous value and the weight the next value in the series
Parameters
| Name | Description |
|---|---|
| CurrentSample | The value to blend with the previous sample to get a new weighted value |
| PreviousSample | The last value from the series |
| Weight | The weight to blend with |