![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CachedLinearRegressionSums.h>
Public Member Functions | |
| FCachedLinearRegressionSums (SIZE_T InNumSamples) | |
| bool | IsEmpty () const |
Public Attributes | |
| TModuloCircularBuffer< FVector2d > | Samples |
| FLinearRegressionArgs | CachedSums |
Data structure for building a FLinearFunction based on linear regression.
Caches the sums required for linear regression: when an old sample is replaced, the old value is subtracted and the new value added. This effectively avoids the summing all elements whenever the a new sample is added.
|
inlineexplicit |
|
inline |
| FLinearRegressionArgs UE::TimeManagement::FCachedLinearRegressionSums::CachedSums |
Caches the sums of the samples. Whenever a sample is replaced, the old value is subtracted and the new value added to the respective sums.
| TModuloCircularBuffer<FVector2d> UE::TimeManagement::FCachedLinearRegressionSums::Samples |
Holds the samples based off of which the samples are created.