36#ifndef VP_STATISTICAL_TEST_EWMA_H
37#define VP_STATISTICAL_TEST_EWMA_H
39#include <visp3/core/vpConfig.h>
41#include <visp3/core/vpStatisticalTestAbstract.h>
155 void init(
const float &alpha);
164 void init(
const float &alpha,
const float &mean,
const float &stdev);
171 void setAlpha(
const float &alpha);
vpMeanDriftType
Enum that indicates if a drift of the mean occurred.
void init()
(Re)Initialize the algorithm.
vpStatisticalTestAbstract()
Construct a new vpStatisticalTestAbstract object.
virtual vpMeanDriftType detectDownwardMeanDrift()=0
Detects if a downward mean drift occurred.
vpStatisticalTestEWMA(const float &alpha=0.1f)
Construct a new vpStatisticalTestEWMA object.
float getWt() const
Get the current value of the test signal.
virtual void updateTestSignals(const float &signal) VP_OVERRIDE
Update the test signals.
float getAlpha() const
Get the forgetting factor of the algorithm.
virtual bool updateStatistics(const float &signal) VP_OVERRIDE
Update m_s and if enough values are available, compute the mean, the standard deviation and the limit...
virtual void computeDeltaAndLimits()
Compute the upper and lower limits of the test signal.
virtual vpMeanDriftType detectUpwardMeanDrift() VP_OVERRIDE
Detects if an upward mean drift occurred on the mean.