We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4b1b7 commit 6c800c1Copy full SHA for 6c800c1
include/optimization/sliding_window.hpp
@@ -41,7 +41,7 @@ class SlidingWindow {
41
numEntries = 0;
42
}
43
44
- /// Adds an approximation in the window
+ /// Adds an approximation in the window to the front of the list
45
/// \param[in] approximation The new approximation
46
void push(NT approximation) {
47
// if window is full, remove the oldest value
@@ -51,7 +51,7 @@ class SlidingWindow {
51
else
52
numEntries++;
53
54
- approximation.push_front(approximation);
+ approximations.push_front(approximation);
55
56
57
/// \return The relative error between the youngest and oldest approximations
0 commit comments