#include <stabilized-value.h>
Public Member Functions | |
void | add (T val) |
void | clear () |
bool | empty () const |
T | get (float stabilization_percent=0.75f) const |
stabilized_value (size_t history_size) | |
stabilized_value ()=delete | |
stabilized_value (const stabilized_value &)=delete | |
Private Attributes | |
const size_t | _history_size |
float | _last_stable_percentage |
T | _last_stable_value |
std::mutex | _mutex |
std::deque< T > | _values |
Definition at line 30 of file stabilized-value.h.
|
inline |
Definition at line 33 of file stabilized-value.h.
|
delete |
|
delete |
|
inline |
Definition at line 45 of file stabilized-value.h.
|
inline |
Definition at line 107 of file stabilized-value.h.
|
inline |
Definition at line 113 of file stabilized-value.h.
|
inline |
Definition at line 63 of file stabilized-value.h.
|
private |
Definition at line 121 of file stabilized-value.h.
|
mutableprivate |
Definition at line 123 of file stabilized-value.h.
|
mutableprivate |
Definition at line 122 of file stabilized-value.h.
|
mutableprivate |
Definition at line 124 of file stabilized-value.h.
|
private |
Definition at line 120 of file stabilized-value.h.