|
guanaqo
1.0.0-alpha.25
Utilities for scientific software
|
#include <guanaqo/max-history.hpp>
Keep track of the maximum value over a specified horizon length.
Definition at line 15 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 17 of file max-history.hpp.
|
inline |
Definition at line 19 of file max-history.hpp.
|
inline |
Definition at line 42 of file max-history.hpp.
|
private |
Definition at line 45 of file max-history.hpp.
|
private |
Definition at line 46 of file max-history.hpp.
|
private |
Definition at line 47 of file max-history.hpp.
|
private |
Definition at line 48 of file max-history.hpp.