![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Namespaces | |
| namespace | TimecodeEstimation |
Classes | |
| struct | FCachedLinearRegressionSums |
| struct | FLinearFunction |
| struct | FLinearRegressionArgs |
| class | TModuloCircularBuffer |
Functions | |
| void | AddSampleAndUpdateSums (const FVector2d &InSample, TModuloCircularBuffer< FVector2d > &InSamples, FLinearRegressionArgs &InCachedArguments) |
| bool | ComputeLinearRegressionSlopeAndOffset (const FLinearRegressionArgs &InArgs, double &OutSlope, double &OutOffset) |
| FLinearRegressionArgs | ComputeLinearRegressionInputArgs (const TConstArrayView< FVector2d > &InBuffer) |
| void | AddSampleAndUpdateSums (const FVector2d &InSample, FCachedLinearRegressionSums &InCachedSums) |
| bool | ComputeLinearRegressionSlopeAndOffset (const FLinearRegressionArgs &InArgs, FLinearFunction &OutFunction) |
|
inline |
| void UE::TimeManagement::AddSampleAndUpdateSums | ( | const FVector2d & | InSample, |
| TModuloCircularBuffer< FVector2d > & | InSamples, | ||
| FLinearRegressionArgs & | InCachedArguments | ||
| ) |
Adds a sample and updates the associated sums.
| FLinearRegressionArgs UE::TimeManagement::ComputeLinearRegressionInputArgs | ( | const TConstArrayView< FVector2d > & | InBuffer | ) |
| bool UE::TimeManagement::ComputeLinearRegressionSlopeAndOffset | ( | const FLinearRegressionArgs & | InArgs, |
| double & | OutSlope, | ||
| double & | OutOffset | ||
| ) |
Computes the coefficients for a linear function by using linear regression.
| InArgs | The arguments required to compute linear regression |
| OutSlope | The slope for the linear regression. The a in "f(x) = a*x + b". |
| OutOffset | The offset for the linear regression. The b in "f(x) = a*x + b". |
|
inline |
Util that puts the sets the values of the linear function.