32#include "../../../../Common/include/option_structure.hpp"
72 std::vector<su2double> values;
73 unsigned long lastTimeIter = std::numeric_limits<unsigned long>::max();
99 lastTimeIter = std::numeric_limits<unsigned long>::max();
108 void AddValue(
su2double valIn,
unsigned long curTimeIter,
unsigned long startIter = 0);
115 su2double UpdateCachedSum(
unsigned long windowWidth)
const;
Definition CWindowingTools.hpp:68
void AddValue(su2double valIn, unsigned long curTimeIter, unsigned long startIter=0)
Adds the instantaneous output of the current iteration to the values-vector, if the current iteration...
Definition CWindowingTools.cpp:69
void Reset()
Resets the value of windowed-time average (of the instantaneous output) from starting time to the cur...
Definition CWindowingTools.hpp:95
CWindowedAverage(WINDOW_FUNCTION windowId)
Creates a new CWindowedAverage with the specified windowing function.
Definition CWindowingTools.hpp:81
su2double GetVal() const
Returns the value of windowed-time average (of the instantaneous output) from starting time to the cu...
Definition CWindowingTools.hpp:90
passivedouble su2double
Definition code_config.hpp:181
WINDOW_FUNCTION
Types of window (weight) functions for cost functional.
Definition option_structure.hpp:1634
@ SQUARE
No weight function (order 1)