36#ifndef VP_STATISTICAL_TEST_SIGMA_H
37#define VP_STATISTICAL_TEST_SIGMA_H
39#include <visp3/core/vpConfig.h>
41#include <visp3/core/vpStatisticalTestAbstract.h>
153 void init(
const float &h = 3.f,
const unsigned int &nbSamplesForStats = 30);
162 void init(
const float &h,
const float &mean,
const float &stdev);
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.
vpStatisticalTestSigma(const float &h=3.f, const unsigned int &nbSamplesForStats=30)
Construct a new vpStatisticalTestSigma object.
virtual float getSignal() const
Get the last value of the signal.
virtual void updateTestSignals(const float &signal) VP_OVERRIDE
Update the test signals.
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 vpMeanDriftType detectUpwardMeanDrift() VP_OVERRIDE
Detects if an upward mean drift occurred on the mean.
virtual void computeLimits()
Compute the upper and lower limits of the test signal.