UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMovingWindowAverageFast< T, ArraySize > Class Template Reference

#include <MovingWindowAverageFast.h>

Public Member Functions

 FMovingWindowAverageFast ()
 
void PushValue (T Value)
 
GetAverage () const
 

Detailed Description

template<typename T, int32 ArraySize>
class FMovingWindowAverageFast< T, ArraySize >

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.

Constructor & Destructor Documentation

◆ FMovingWindowAverageFast()

template<typename T , int32 ArraySize>
FMovingWindowAverageFast< T, ArraySize >::FMovingWindowAverageFast ( )
inline

Member Function Documentation

◆ GetAverage()

template<typename T , int32 ArraySize>
T FMovingWindowAverageFast< T, ArraySize >::GetAverage ( ) const
inline

◆ PushValue()

template<typename T , int32 ArraySize>
void FMovingWindowAverageFast< T, ArraySize >::PushValue ( Value)
inline

The documentation for this class was generated from the following file: