#include <alpaqa/util/max-history.hpp>
Keep track of the maximum value over a specified horizon length.
Definition at line 11 of file max-history.hpp.
Public Member Functions | |
MaxHistory (size_t memory) | |
void | add (T newt) |
const T & | max () const |
Private Attributes | |
std::vector< T > | buffer |
bool | full = false |
decltype(buffer.begin()) | it = buffer.begin() |
T | max_ {} |
|
inline |
Definition at line 13 of file max-history.hpp.
|
inline |
Definition at line 15 of file max-history.hpp.
|
inline |
Definition at line 38 of file max-history.hpp.
|
private |
Definition at line 41 of file max-history.hpp.
|
private |
Definition at line 42 of file max-history.hpp.
|
private |
Definition at line 43 of file max-history.hpp.
|
private |
Definition at line 44 of file max-history.hpp.