Navigation
API > API/Runtime > API/Runtime/NetCore
Base class for moving values, implementing non-templatized data-structure/methods. See TBinnedMovingValue.
| Name | FBinnedMovingValueBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Analytics/NetStatsUtils.h |
| Include Path | #include "Net/Core/Analytics/NetStatsUtils.h" |
Syntax
class FBinnedMovingValueBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Net/Core/Analytics/NetStatsUtils.h | |||
FBinnedMovingValueBase
(
const TArrayView< FBin > InBins, |
FBinnedMovingValueBase | Net/Core/Analytics/NetStatsUtils.h |
Structs
| Name | Remarks |
|---|---|
| FBin |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BinRange | const double | The total range of all bins | Net/Core/Analytics/NetStatsUtils.h | |
| BinsView | const TArrayView< FBin > | A view of the allocated bins, for collecting moving values | Net/Core/Analytics/NetStatsUtils.h | |
| FirstBinIndex | int32 | The index of the first bin that a value was stored in, to detect when all bins are rolled over | Net/Core/Analytics/NetStatsUtils.h | |
| LastWrittenBinIndex | int32 | The index of the last bin to be written to | Net/Core/Analytics/NetStatsUtils.h | |
| SampleMode | const EBinnedValueMode | The mode for sample calculations - typically moving average, or moving sum | Net/Core/Analytics/NetStatsUtils.h | |
| TimePerBin | const double | The amount of time tracked by each individual bin | Net/Core/Analytics/NetStatsUtils.h | |
| TotalCount | int32 | The total count of all bins | Net/Core/Analytics/NetStatsUtils.h | |
| TotalSum | double | The total summed value of all bins | Net/Core/Analytics/NetStatsUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
double GetSample() |
Gets a sample of the calculated moving value, based on current bin data. | Net/Core/Analytics/NetStatsUtils.h | |
void Reset() |
Resets the accumulated bin/sample data. | Net/Core/Analytics/NetStatsUtils.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddMeasurement_Implementation
(
double TimeVal, |
Internal implementation for AddMeasurement, which outputs a sample if the bins have filled and rolled back over to FirstBinIndex. | Net/Core/Analytics/NetStatsUtils.h |