37 #ifndef _vpStatisticalTestEWMA_h_
38 #define _vpStatisticalTestEWMA_h_
40 #include <visp3/core/vpConfig.h>
42 #include <visp3/core/vpStatisticalTestAbstract.h>
81 virtual void computeDeltaAndLimits();
90 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
103 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
115 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
126 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
165 void init(
const float &alpha);
174 void init(
const float &alpha,
const float &mean,
const float &stdev);
181 void setAlpha(
const float &alpha);
Base class for methods detecting the drift of the mean of a process.
vpMeanDriftType
Enum that indicates if a drift of the mean occurred.
virtual vpMeanDriftType detectUpwardMeanDrift()=0
Detects if a upward mean drift occurred.
void init()
(Re)Initialize the algorithm.
virtual bool updateStatistics(const float &signal)
Update m_s and if enough values are available, compute the mean, the standard deviation and the limit...
virtual void updateTestSignals(const float &signal)=0
Update the test signals.
virtual vpMeanDriftType detectDownwardMeanDrift()=0
Detects if a downward mean drift occurred.
Class that permits to perform Exponentially Weighted Moving Average mean drft tests.
float getWt() const
Get the current value of the test signal.
float getAlpha() const
Get the forgetting factor of the algorithm.