gwnavruntime/world/floatstat.h Source File
Go to the documentation of this file.
25 FloatStat(
const String& name,
KyUInt32 windowSize = 300) { Init(name, windowSize); }
27 void Init(
const String& name,
KyUInt32 windowSize = 300)
30 SetWindowSize(windowSize);
33 void SetWindowSize(
KyUInt32 windowSize)
35 m_values.Resize(windowSize);
42 const String& GetName()
const {
return m_name; }
43 KyFloat32 GetCurrent()
const {
return m_current; }
44 KyFloat32 GetAverage()
const {
return m_average; }
45 KyFloat32 GetMin()
const {
return m_min; }
46 KyFloat32 GetMax()
const {
return m_max; }
48 KyFloat32& GetWritableCurrent() {
return m_current; }
50 void SetCurrent(
KyFloat32 current) { m_current = current; }
66 Array<KyFloat32> m_values;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
FloatStat maintains current, average, min, max statistics in a sliding window of frames.
Definition: floatstat.h:19
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32