36#ifndef VP_STATISTICAL_TEST_HINKLEY_H
37#define VP_STATISTICAL_TEST_HINKLEY_H
39#include <visp3/core/vpConfig.h>
41#include <visp3/core/vpStatisticalTestAbstract.h>
208 vpStatisticalTestHinkley(const
float &h, const
float &k, const
bool &computeAlphaDeltaFromStdev, const
unsigned int &nbSamplesForInit = 30);
271 void init(
const float &alpha,
const float &delta,
const unsigned int &nbSamplesForInit);
282 void init(
const float &h,
const float &k,
const bool &computeAlphaDeltaFromStdev,
const unsigned int &nbSamplesForInit);
292 void init(
const float &alpha,
const float &delta,
const float &mean);
303 void init(
const float &h,
const float &k,
const float &mean,
const float &stdev);
310 void setDelta(
const float &delta);
317 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.
vpStatisticalTestHinkley()
Construct a new vpStatisticalTestHinkley object. Call init() to initialise the Hinkley's test and set...
virtual void computeAlphaDelta()
Compute and from the standard deviation of the signal.
float getAlpha() const
Get the threshold indicating that a mean drift occurs.
float getNk() const
Get the minimum of the test signal for upward mean drift .
void computeTk(double signal)
Compute .
void computeMk()
Compute , the maximum value of .
virtual vpMeanDriftType detectUpwardMeanDrift() VP_OVERRIDE
Detects if an upward mean drift occurred on the mean.
void computeNk()
Compute , the minimum value of .
float getTk() const
Get the test signal for upward mean drift..
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...
void computeSk(double signal)
Compute .
void computeMean(double signal)
Compute the mean value of the signal. The mean value must be computed before the mean drift is estim...
float getSk() const
Get the test signal for downward mean drift.
virtual void updateTestSignals(const float &signal) VP_OVERRIDE
Update the test signals.
bool m_computeDeltaAndAlpha
float getMk() const
Get the maximum of the test signal for downward mean drift .