Navigation
API > API/Runtime > API/Runtime/TimeManagement
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.
| Name | FCachedLinearRegressionSums |
| Type | struct |
| Header File | /Engine/Source/Runtime/TimeManagement/Public/Misc/CachedLinearRegressionSums.h |
| Include Path | #include "Misc/CachedLinearRegressionSums.h" |
Syntax
struct FCachedLinearRegressionSums
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCachedLinearRegressionSums
(
SIZE_T InNumSamples |
Misc/CachedLinearRegressionSums.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedSums | FLinearRegressionArgs | Caches the sums of the samples. | Misc/CachedLinearRegressionSums.h | |
| Samples | TModuloCircularBuffer< FVector2d > | Holds the samples based off of which the samples are created. | Misc/CachedLinearRegressionSums.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsEmpty() |
Misc/CachedLinearRegressionSums.h |