6 #ifndef FUNCTIONMAVG_H_
7 #define FUNCTIONMAVG_H_
9 #include "plotsconfig.h"
11 #include "functiondefinition.h"
41 QList<QPointF> window;
51 static double addWindowAndAverage(
double time,
double value,
double windowSizeValue, Context &context);
54 #endif // FUNCTIONMAVG_H_
const QString & category() const
Access the function categorisation for UI grouping.
Definition: functiondefinition.h:57
void * createContext() const override
Creates the history object.
Plot sampling progress information for PlotFunction.
Definition: plotfunctioninfo.h:16
unsigned argc() const
Access the minimum argument count.
Definition: functiondefinition.h:93
FunctionMAvg(const QString &category=QString())
Constructor.
void evaluate(PlotFunctionResult &result, double time, unsigned int argc, const double *argv, const PlotFunctionInfo &info, void *context) const override
Updates the window and evaluates the average on that window.
Result value from a PlotFunction.
Definition: plotfunctionresult.h:27
void destroyContext(void *context) const override
Destroys the history object.
Defines a function which can be used with the FunctionRegister.
Definition: functiondefinition.h:34
A function which evaluates a moving average.
Definition: functionmavg.h:21