FMovingWindowAverageFast

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

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

Name Description

Public function

FMovingWindowAverageFast()

Functions

Name Description

Public function Const

T

 

GetAverage()

Public function

void

 

PushValue

(
    T Value
)

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