Rebel Fork Framework
Urho3D::FilteredUint Class Reference

Utility class to filter random uint value which mostly stays the same. More...

#include <Urho3D/Network/ClockSynchronizer.h>

Public Member Functions

 FilteredUint (unsigned bufferSize, float maxDeviation=1.0f)
void AddValue (unsigned value, bool filter=true)
void Filter ()
unsigned GetMinValue () const
unsigned GetAverageValue () const
unsigned GetMaxValue () const
unsigned GetStabilizedAverageMaxValue () const
bool IsInitialized () const

Private Attributes

const float maxDeviation_ {}
unsigned baseValue_ {}
ea::ring_buffer< int > offsets_
int minOffset_ {}
int averageOffset_ {}
int maxOffset_ {}
int stabilizedMaxAverageOffset_ {}

Detailed Description

Utility class to filter random uint value which mostly stays the same.


The documentation for this class was generated from the following files:
  • Urho3D/Network/ClockSynchronizer.h
  • Urho3D/Network/ClockSynchronizer.cpp