Skip to content

Commit 6c800c1

Browse files
authored
sliding window function minor fix (#351)
* sliding window function minor fix * removed whitespaces
1 parent 5e4b1b7 commit 6c800c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/optimization/sliding_window.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SlidingWindow {
4141
numEntries = 0;
4242
}
4343

44-
/// Adds an approximation in the window
44+
/// Adds an approximation in the window to the front of the list
4545
/// \param[in] approximation The new approximation
4646
void push(NT approximation) {
4747
// if window is full, remove the oldest value
@@ -51,7 +51,7 @@ class SlidingWindow {
5151
else
5252
numEntries++;
5353

54-
approximation.push_front(approximation);
54+
approximations.push_front(approximation);
5555
}
5656

5757
/// \return The relative error between the youngest and oldest approximations

0 commit comments

Comments
 (0)