Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/MovingWindowAverageFast.h |
Include | #include "Math/MovingWindowAverageFast.h" |
Syntax
template<typename T, int32 ArraySize>
class FMovingWindowAverageFast
Remarks
This class calculates a moving window average. Its designed to be used with floats or doubles and keeps track of the average with every value pushed so is ideal when there is a one to one or one to many relationship between calls to PushValue() and GetMovingWindowAverage() respectively.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
T | GetAverage () |
|
![]() |
void | PushValue
(
T Value |