36#ifndef VP_STATISTICAL_TEST_ABSTRACT_H
37#define VP_STATISTICAL_TEST_ABSTRACT_H
44#include <visp3/core/vpConfig.h>
85 static std::string vpMeanDriftTypeToString(
const vpMeanDriftType &type);
93 static vpMeanDriftType vpMeanDriftTypeFromString(
const std::string &name);
103 static std::string getAvailableMeanDriftType(
const std::string &prefix =
"<",
const std::string &sep =
" , ",
104 const std::string &suffix =
">");
111 static void print(
const vpMeanDriftType &type);
181 inline void getLimits(
float &limitDown,
float &limitUp)
const
237 void setNbSamplesForStat(
const unsigned int &nbSamples);
248 vpMeanDriftType testDownUpwardMeanDrift(
const float &signal);
259 vpMeanDriftType testDownwardMeanDrift(
const float &signal);
270 vpMeanDriftType testUpwardMeanDrift(
const float &signal);
Base class for methods detecting the drift of the mean of a process.
vpMeanDriftType
Enum that indicates if a drift of the mean occurred.
void getLimits(float &limitDown, float &limitUp) const
Get the upper and lower limits of the test signal.
virtual vpMeanDriftType detectUpwardMeanDrift()=0
Detects if a upward mean drift occurred.
void setMinStdev(const float &stdevmin)
Set the minimum value of the standard deviation that is expected. The computed standard deviation can...
vpStatisticalTestAbstract()
Construct a new vpStatisticalTestAbstract object.
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.
bool m_areStatisticsComputed
float getMean() const
Get the mean used as reference.
unsigned int m_nbSamplesForStatistics
float getStdev() const
Get the standard deviation used as reference.
virtual vpMeanDriftType detectDownwardMeanDrift()=0
Detects if a downward mean drift occurred.