Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
vpStatisticalTestMeanAdjustedCUSUM Class Reference

#include <vpStatisticalTestMeanAdjustedCUSUM.h>

Inheritance diagram for vpStatisticalTestMeanAdjustedCUSUM:

Public Types

enum  vpMeanDriftType {
  MEAN_DRIFT_NONE = 0 , MEAN_DRIFT_DOWNWARD = 1 , MEAN_DRIFT_UPWARD = 2 , MEAN_DRIFT_BOTH = 3 ,
  MEAN_DRIFT_COUNT = 4 , MEAN_DRIFT_UNKNOWN = MEAN_DRIFT_COUNT
}
typedef enum vpStatisticalTestAbstract::vpMeanDriftType vpMeanDriftType

Public Member Functions

 vpStatisticalTestMeanAdjustedCUSUM (const float &h=4.f, const float &k=1.f, const unsigned int &nbPtsForStats=30)
float getDelta () const
float getH () const
float getK () const
float getTestSignalMinus () const
float getTestSignalPlus () const
void init (const float &h, const float &k, const unsigned int &nbPtsForStats)
void init (const float &delta, const float &limitDown, const float &limitUp, const unsigned int &nbPtsForStats)
void init (const float &h, const float &k, const float &mean, const float &stdev)
void init (const float &delta, const float &limitDown, const float &limitUp, const float &mean, const float &stdev)
void setDelta (const float &delta)
void setLimits (const float &limitDown, const float &limitUp)
void getLimits (float &limitDown, float &limitUp) const
float getMean () const
float getStdev () const
void init ()
void setMinStdev (const float &stdevmin)
void setNbSamplesForStat (const unsigned int &nbSamples)
vpMeanDriftType testDownUpwardMeanDrift (const float &signal)
vpMeanDriftType testDownwardMeanDrift (const float &signal)
vpMeanDriftType testUpwardMeanDrift (const float &signal)

Static Public Member Functions

static std::string vpMeanDriftTypeToString (const vpMeanDriftType &type)
static vpMeanDriftType vpMeanDriftTypeFromString (const std::string &name)
static std::string getAvailableMeanDriftType (const std::string &prefix="<", const std::string &sep=" , ", const std::string &suffix=">")
static void print (const vpMeanDriftType &type)

Protected Member Functions

virtual void computeDeltaAndLimits ()
virtual vpMeanDriftType detectDownwardMeanDrift () VP_OVERRIDE
virtual vpMeanDriftType detectUpwardMeanDrift () VP_OVERRIDE
virtual bool updateStatistics (const float &signal) VP_OVERRIDE
virtual void updateTestSignals (const float &signal) VP_OVERRIDE

Protected Attributes

float m_delta
float m_h
float m_half_delta
float m_k
float m_sminus
float m_splus
bool m_areStatisticsComputed
float m_count
float m_limitDown
float m_limitUp
float m_mean
unsigned int m_nbSamplesForStatistics
float * m_s
float m_stdev
float m_stdevmin
float m_sumForMean

Detailed Description

Class that permits to perform a mean adjusted Cumulative Sum test.

The mean adjusted CUSUM test is designed to detect drift in the mean $ \mu $ of an observed signal $ s(t) $.

Be $ \delta $ the amplitude of the mean drift we want to detect. Two test signals are computed at each iteration:

$ S_-(t) = max\{0, S_-(t-1) - (s(t) - \mu) - \frac{\delta}{2}\} $

$ S_+(t) = max\{0, S_+(t-1) + (s(t) - \mu) - \frac{\delta}{2}\} $

A downward alarm is raised if: $ S_-(t) >= thresh$

An upward alarm is raised if: $ S_+(t) >= thresh$

To ease the understanding of the detection threshold $ \delta $ and the alarm threshold $ thresh $, ViSP implemented these two thresholds as a multiple of the standard deviation of the signal $ \sigma $:

$ \delta = k \sigma , k \in R^{+*} $

$ thresh = h \sigma , h \in R^{+*} $

To have an Average Run Lenght of ~374 samples for a detection threshold $ \delta $ of 1 standard deviation $ \sigma $, set $ h $ to 4.76 .

To detect only downward drifts of the input signal $ s(t) $ use testDownwardMeanDrift().To detect only upward drifts in $ s(t) $ use testUpwardMeanDrift(). To detect both, downward and upward drifts use testDownUpwardMeanDrift().

Tutorials & Examples

Tutorials
If you are interested in using Statistical Process Control methods, you may have a look at:

Examples
testSPC.cpp, and tutorial-meandrift.cpp.

Definition at line 87 of file vpStatisticalTestMeanAdjustedCUSUM.h.

Member Typedef Documentation

◆ vpMeanDriftType

Enum that indicates if a drift of the mean occurred.

Member Enumeration Documentation

◆ vpMeanDriftType

Enum that indicates if a drift of the mean occurred.

Enumerator
MEAN_DRIFT_NONE 

No mean drift occurred

MEAN_DRIFT_DOWNWARD 

A downward drift of the mean occurred.

MEAN_DRIFT_UPWARD 

An upward drift of the mean occurred.

MEAN_DRIFT_BOTH 

Both an aupward and a downward drifts occurred.

MEAN_DRIFT_COUNT 
MEAN_DRIFT_UNKNOWN 
Examples
testSPC.cpp, and tutorial-meandrift.cpp.

Definition at line 69 of file vpStatisticalTestAbstract.h.

Constructor & Destructor Documentation

◆ vpStatisticalTestMeanAdjustedCUSUM()

vpStatisticalTestMeanAdjustedCUSUM::vpStatisticalTestMeanAdjustedCUSUM ( const float & h = 4.f,
const float & k = 1.f,
const unsigned int & nbPtsForStats = 30 )

Construct a new vpStatisticalTestMeanAdjustedCUSUM object.

Parameters
[in]hThe alarm factor that permits to determine when the process is out of control from the standard deviation of the signal.
[in]kThe detection factor that permits to determine the slack of the CUSUM test, i.e. the minimum value of the jumps we want to detect, from the standard deviation of the signal.
[in]nbPtsForStatsThe number of samples to use to compute the mean and the standard deviation of the signal to monitor.

Definition at line 92 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References vpStatisticalTestAbstract::init(), m_delta, m_h, m_half_delta, m_k, m_sminus, m_splus, and vpStatisticalTestAbstract::vpStatisticalTestAbstract().

Member Function Documentation

◆ computeDeltaAndLimits()

BEGIN_VISP_NAMESPACE void vpStatisticalTestMeanAdjustedCUSUM::computeDeltaAndLimits ( )
protectedvirtual

Compute the upper and lower limits of the test signal.

Definition at line 42 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References m_h, m_k, vpStatisticalTestAbstract::m_stdev, setDelta(), and setLimits().

Referenced by init(), and updateStatistics().

◆ detectDownwardMeanDrift()

vpStatisticalTestAbstract::vpMeanDriftType vpStatisticalTestMeanAdjustedCUSUM::detectDownwardMeanDrift ( )
protectedvirtual

Detects if a downward mean drift occurred.

Returns
vpMeanDriftType::MEAN_DRIFT_DOWNWARD if a downward mean drift occurred, vpMeanDriftType::MEAN_DRIFT_NONE otherwise.
See also
detectUpwardMeanDrift()

Implements vpStatisticalTestAbstract.

Definition at line 50 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References vpStatisticalTestAbstract::m_limitDown, m_sminus, vpStatisticalTestAbstract::MEAN_DRIFT_DOWNWARD, and vpStatisticalTestAbstract::MEAN_DRIFT_NONE.

◆ detectUpwardMeanDrift()

vpStatisticalTestAbstract::vpMeanDriftType vpStatisticalTestMeanAdjustedCUSUM::detectUpwardMeanDrift ( )
protectedvirtual

Detects if a upward jump occurred on the mean.

Returns
upwardJump if a upward jump occurred, noJump otherwise.

Implements vpStatisticalTestAbstract.

Definition at line 60 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References vpStatisticalTestAbstract::m_limitUp, m_splus, vpStatisticalTestAbstract::MEAN_DRIFT_NONE, and vpStatisticalTestAbstract::MEAN_DRIFT_UPWARD.

◆ getAvailableMeanDriftType()

std::string vpStatisticalTestAbstract::getAvailableMeanDriftType ( const std::string & prefix = "<",
const std::string & sep = " , ",
const std::string & suffix = ">" )
staticinherited

Get the list of available vpMeanDriftType objects that are handled.

Parameters
[in]prefixThe prefix that should be placed before the list.
[in]sepThe separator between each element of the list.
[in]suffixThe suffix that should terminate the list.
Returns
std::string The list of handled type of process tests, presented as a string.
Examples
tutorial-meandrift.cpp.

Definition at line 85 of file vpStatisticalTestAbstract.cpp.

References MEAN_DRIFT_COUNT, and vpMeanDriftTypeToString().

◆ getDelta()

float vpStatisticalTestMeanAdjustedCUSUM::getDelta ( ) const
inline

Get the slack of the CUSUM test, i.e. amplitude of mean shift we want to be able to detect.

Returns
float The slack of the CUSUM test.

Definition at line 153 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References getDelta(), and m_delta.

Referenced by getDelta().

◆ getH()

float vpStatisticalTestMeanAdjustedCUSUM::getH ( ) const
inline

Get the alarm factor.

Returns
float The alarm factor.

Definition at line 163 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References m_h.

◆ getK()

float vpStatisticalTestMeanAdjustedCUSUM::getK ( ) const
inline

Get the detection factor.

Returns
float The detection factor.

Definition at line 173 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References m_k.

◆ getLimits()

void vpStatisticalTestAbstract::getLimits ( float & limitDown,
float & limitUp ) const
inlineinherited

Get the upper and lower limits of the test signal.

Parameters
[out]limitDownThe lower limit.
[out]limitUpThe upper limit.
Examples
testSPC.cpp, and tutorial-meandrift.cpp.

Definition at line 181 of file vpStatisticalTestAbstract.h.

References m_limitDown, and m_limitUp.

◆ getMean()

float vpStatisticalTestAbstract::getMean ( ) const
inlineinherited

Get the mean used as reference.

Returns
float The mean.
Examples
tutorial-meandrift.cpp.

Definition at line 192 of file vpStatisticalTestAbstract.h.

References m_mean.

◆ getStdev()

float vpStatisticalTestAbstract::getStdev ( ) const
inlineinherited

Get the standard deviation used as reference.

Returns
float The standard deviation.
Examples
tutorial-meandrift.cpp.

Definition at line 202 of file vpStatisticalTestAbstract.h.

References m_stdev.

◆ getTestSignalMinus()

float vpStatisticalTestMeanAdjustedCUSUM::getTestSignalMinus ( ) const
inline

Get the latest value of the test signal for downward jumps of the mean.

Returns
float Its latest value.
Examples
tutorial-meandrift.cpp.

Definition at line 183 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References m_sminus.

◆ getTestSignalPlus()

float vpStatisticalTestMeanAdjustedCUSUM::getTestSignalPlus ( ) const
inline

Get the latest value of the test signal for upward jumps of the mean.

Returns
float Its latest value.
Examples
tutorial-meandrift.cpp.

Definition at line 193 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References m_splus.

◆ init() [1/5]

◆ init() [2/5]

void vpStatisticalTestMeanAdjustedCUSUM::init ( const float & delta,
const float & limitDown,
const float & limitUp,
const float & mean,
const float & stdev )

Initialize the mean adjusted CUSUM test.

Parameters
[in]deltaThe slack of the CUSUM test, i.e. the minimum value of the jumps we want to detect.
[in]limitDownThe lower limit of the CUSUM test, for the downward jumps.
[in]limitUpThe upper limit of the CUSUM test, for the upward jumps.
[in]meanThe expected mean of the signal to monitor.
[in]stdevThe expected standard deviation of the signal to monitor.

Definition at line 144 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References vpStatisticalTestAbstract::init(), vpStatisticalTestAbstract::m_areStatisticsComputed, vpStatisticalTestAbstract::m_mean, m_sminus, m_splus, vpStatisticalTestAbstract::m_stdev, vpStatisticalTestAbstract::m_sumForMean, setDelta(), and setLimits().

◆ init() [3/5]

void vpStatisticalTestMeanAdjustedCUSUM::init ( const float & delta,
const float & limitDown,
const float & limitUp,
const unsigned int & nbPtsForStats )

Initialize the mean adjusted CUSUM test.

Parameters
[in]deltaThe slack of the CUSUM test, i.e. the minimum value of the jumps we want to detect.
[in]limitDownThe lower limit of the CUSUM test, for the downward jumps.
[in]limitUpThe upper limit of the CUSUM test, for the upward jumps.
[in]nbPtsForStatsThe number of points to use to compute the mean and the standard deviation of the signal to monitor.

Definition at line 119 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References vpStatisticalTestAbstract::init(), m_sminus, m_splus, setDelta(), setLimits(), and vpStatisticalTestAbstract::setNbSamplesForStat().

◆ init() [4/5]

void vpStatisticalTestMeanAdjustedCUSUM::init ( const float & h,
const float & k,
const float & mean,
const float & stdev )

Initialize the mean adjusted CUSUM test.

Parameters
[in]hThe alarm factor that permits to determine when the process is out of control from the standard deviation of the signal.
[in]kThe detection factor that permits to determine the slack of the CUSUM test, i.e. the minimum value of the jumps we want to detect, from the standard deviation of the signal.
[in]meanThe expected mean of the signal to monitor.
[in]stdevThe expected standard deviation of the signal to monitor.

Definition at line 129 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References computeDeltaAndLimits(), vpStatisticalTestAbstract::init(), vpStatisticalTestAbstract::m_areStatisticsComputed, m_h, m_k, vpStatisticalTestAbstract::m_mean, m_sminus, m_splus, vpStatisticalTestAbstract::m_stdev, and setLimits().

◆ init() [5/5]

void vpStatisticalTestMeanAdjustedCUSUM::init ( const float & h,
const float & k,
const unsigned int & nbPtsForStats )

(Re)Initialize the mean adjusted CUSUM test.

Parameters
[in]hThe alarm factor that permits to determine when the process is out of control from the standard deviation of the signal.
[in]kThe detection factor that permits to determine the slack of the CUSUM test, i.e. the minimum value of the jumps we want to detect, from the standard deviation of the signal.
[in]nbPtsForStatsThe number of points to use to compute the mean and the standard deviation of the signal

Definition at line 104 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References vpStatisticalTestAbstract::init(), m_delta, m_h, m_half_delta, m_k, vpStatisticalTestAbstract::m_mean, m_sminus, m_splus, vpStatisticalTestAbstract::m_stdev, setLimits(), and vpStatisticalTestAbstract::setNbSamplesForStat().

◆ print()

void vpStatisticalTestAbstract::print ( const vpMeanDriftType & type)
staticinherited

Print the message corresponding to the type of mean drift.

Parameters
[in]typeThe type of mean drift.

Definition at line 98 of file vpStatisticalTestAbstract.cpp.

References vpMeanDriftTypeToString().

◆ setDelta()

void vpStatisticalTestMeanAdjustedCUSUM::setDelta ( const float & delta)
inline

Set the slack of the CUSUM test, i.e. the minimum value of the jumps we want to detect.

Parameters
[in]deltaThe slack of the CUSUM test.

Definition at line 248 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References m_delta, and m_half_delta.

Referenced by computeDeltaAndLimits(), init(), and init().

◆ setLimits()

void vpStatisticalTestMeanAdjustedCUSUM::setLimits ( const float & limitDown,
const float & limitUp )
inline

Set the upward and downward jump limits.

Parameters
[in]limitDownThe limit for the downward jumps.
[in]limitUpThe limit for the upward jumps.

Definition at line 260 of file vpStatisticalTestMeanAdjustedCUSUM.h.

References vpStatisticalTestAbstract::m_limitDown, and vpStatisticalTestAbstract::m_limitUp.

Referenced by computeDeltaAndLimits(), init(), init(), init(), and init().

◆ setMinStdev()

void vpStatisticalTestAbstract::setMinStdev ( const float & stdevmin)
inlineinherited

Set the minimum value of the standard deviation that is expected. The computed standard deviation cannot be lower this value if set.

Parameters
[in]stdevminThe minimum value of the standard deviation that is expected.

Definition at line 226 of file vpStatisticalTestAbstract.h.

References m_stdevmin.

◆ setNbSamplesForStat()

void vpStatisticalTestAbstract::setNbSamplesForStat ( const unsigned int & nbSamples)
inherited

Set the number of samples required to compute the mean and standard deviation of the signal and allocate the memory accordingly.

Parameters
[in]nbSamplesThe number of samples we want to use.

Definition at line 193 of file vpStatisticalTestAbstract.cpp.

References m_nbSamplesForStatistics, and m_s.

Referenced by vpStatisticalTestEWMA::init(), vpStatisticalTestEWMA::init(), vpStatisticalTestHinkley::init(), vpStatisticalTestHinkley::init(), vpStatisticalTestHinkley::init(), vpStatisticalTestMeanAdjustedCUSUM::init(), vpStatisticalTestMeanAdjustedCUSUM::init(), vpStatisticalTestSigma::init(), and operator=().

◆ testDownUpwardMeanDrift()

vpStatisticalTestAbstract::vpMeanDriftType vpStatisticalTestAbstract::testDownUpwardMeanDrift ( const float & signal)
inherited

Test if a downward or an upward mean drift occurred according to the new value of the signal.

Parameters
[in]signalThe new value of the signal.
Returns
vpMeanDriftType The type of mean drift that occurred.
See also
testDownwardMeanDrift() testUpwardMeanDrift()
Examples
testSPC.cpp, and tutorial-meandrift.cpp.

Definition at line 202 of file vpStatisticalTestAbstract.cpp.

References detectDownwardMeanDrift(), detectUpwardMeanDrift(), m_areStatisticsComputed, MEAN_DRIFT_BOTH, MEAN_DRIFT_NONE, updateStatistics(), and updateTestSignals().

◆ testDownwardMeanDrift()

vpStatisticalTestAbstract::vpMeanDriftType vpStatisticalTestAbstract::testDownwardMeanDrift ( const float & signal)
inherited

Test if a downward mean drift occurred according to the new value of the signal.

Parameters
[in]signalThe new value of the signal.
Returns
vpMeanDriftType The type of mean drift that occurred.
See also
testUpwardMeanDrift()

Definition at line 227 of file vpStatisticalTestAbstract.cpp.

References detectDownwardMeanDrift(), m_areStatisticsComputed, MEAN_DRIFT_NONE, updateStatistics(), and updateTestSignals().

◆ testUpwardMeanDrift()

vpStatisticalTestAbstract::vpMeanDriftType vpStatisticalTestAbstract::testUpwardMeanDrift ( const float & signal)
inherited

Test if an upward mean drift occurred according to the new value of the signal.

Parameters
[in]signalThe new value of the signal.
Returns
vpMeanDriftType The type of mean drift that occurred.
See also
testDownwardMeanDrift()

Definition at line 239 of file vpStatisticalTestAbstract.cpp.

References detectUpwardMeanDrift(), m_areStatisticsComputed, MEAN_DRIFT_NONE, updateStatistics(), and updateTestSignals().

◆ updateStatistics()

bool vpStatisticalTestMeanAdjustedCUSUM::updateStatistics ( const float & signal)
protectedvirtual

Update m_s and if enough values are available, compute the mean, the standard deviation and the limits.

Parameters
[in]signalThe new value of the signal to monitor.

Reimplemented from vpStatisticalTestAbstract.

Definition at line 70 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References computeDeltaAndLimits(), vpStatisticalTestAbstract::m_limitDown, vpStatisticalTestAbstract::m_limitUp, m_sminus, m_splus, and vpStatisticalTestAbstract::updateStatistics().

◆ updateTestSignals()

void vpStatisticalTestMeanAdjustedCUSUM::updateTestSignals ( const float & signal)
protectedvirtual

Update the test signals.

Parameters
[in]signalThe new value of the signal to monitor.

Implements vpStatisticalTestAbstract.

Definition at line 86 of file vpStatisticalTestMeanAdjustedCUSUM.cpp.

References m_half_delta, vpStatisticalTestAbstract::m_mean, m_sminus, and m_splus.

◆ vpMeanDriftTypeFromString()

vpStatisticalTestAbstract::vpMeanDriftType vpStatisticalTestAbstract::vpMeanDriftTypeFromString ( const std::string & name)
staticinherited

Cast a string into a vpMeanDriftType.

Parameters
[in]nameThe name of the mean drift.
Returns
vpMeanDriftType The corresponding vpMeanDriftType.
Examples
tutorial-meandrift.cpp.

Definition at line 68 of file vpStatisticalTestAbstract.cpp.

References MEAN_DRIFT_COUNT, MEAN_DRIFT_UNKNOWN, and vpMeanDriftTypeToString().

◆ vpMeanDriftTypeToString()

BEGIN_VISP_NAMESPACE std::string vpStatisticalTestAbstract::vpMeanDriftTypeToString ( const vpMeanDriftType & type)
staticinherited

Cast a vpMeanDriftType into a string.

Parameters
[in]typeThe type of mean drift.
Returns
std::string The corresponding message.
Examples
testSPC.cpp, and tutorial-meandrift.cpp.

Definition at line 42 of file vpStatisticalTestAbstract.cpp.

References vpException::fatalError, MEAN_DRIFT_BOTH, MEAN_DRIFT_DOWNWARD, MEAN_DRIFT_NONE, MEAN_DRIFT_UNKNOWN, and MEAN_DRIFT_UPWARD.

Referenced by getAvailableMeanDriftType(), print(), and vpMeanDriftTypeFromString().

Member Data Documentation

◆ m_areStatisticsComputed

◆ m_count

float vpStatisticalTestAbstract::m_count
protectedinherited

Current number of data used to compute the mean and the standard deviation.

Definition at line 115 of file vpStatisticalTestAbstract.h.

Referenced by vpStatisticalTestHinkley::computeMean(), init(), operator=(), updateStatistics(), vpStatisticalTestHinkley::updateTestSignals(), and vpStatisticalTestAbstract().

◆ m_delta

float vpStatisticalTestMeanAdjustedCUSUM::m_delta
protected

Slack of the CUSUM test, i.e. amplitude of mean shift we want to be able to detect.

Definition at line 90 of file vpStatisticalTestMeanAdjustedCUSUM.h.

Referenced by getDelta(), init(), setDelta(), and vpStatisticalTestMeanAdjustedCUSUM().

◆ m_h

float vpStatisticalTestMeanAdjustedCUSUM::m_h
protected

Alarm factor that permits to determine the limit telling when a mean shift occurs: $thresh = h * \sigma $ . To have an Average Run Lenght of ~374 samples for a detection of 1 stdev, set it to 4.76f

Definition at line 91 of file vpStatisticalTestMeanAdjustedCUSUM.h.

Referenced by computeDeltaAndLimits(), getH(), init(), init(), and vpStatisticalTestMeanAdjustedCUSUM().

◆ m_half_delta

float vpStatisticalTestMeanAdjustedCUSUM::m_half_delta
protected

Half of the amplitude we want to detect.

Definition at line 93 of file vpStatisticalTestMeanAdjustedCUSUM.h.

Referenced by init(), setDelta(), updateTestSignals(), and vpStatisticalTestMeanAdjustedCUSUM().

◆ m_k

float vpStatisticalTestMeanAdjustedCUSUM::m_k
protected

Detection factor that permits to determine the slack: $\delta = k * \sigma$ .

Definition at line 94 of file vpStatisticalTestMeanAdjustedCUSUM.h.

Referenced by computeDeltaAndLimits(), getK(), init(), init(), and vpStatisticalTestMeanAdjustedCUSUM().

◆ m_limitDown

◆ m_limitUp

◆ m_mean

◆ m_nbSamplesForStatistics

unsigned int vpStatisticalTestAbstract::m_nbSamplesForStatistics
protectedinherited

Number of samples to use to compute the mean and the standard deviation.

Definition at line 119 of file vpStatisticalTestAbstract.h.

Referenced by init(), operator=(), setNbSamplesForStat(), updateStatistics(), and vpStatisticalTestAbstract().

◆ m_s

float* vpStatisticalTestAbstract::m_s
protectedinherited

Array that keeps the samples used to compute the mean and standard deviation.

Definition at line 120 of file vpStatisticalTestAbstract.h.

Referenced by init(), operator=(), setNbSamplesForStat(), updateStatistics(), vpStatisticalTestAbstract(), and ~vpStatisticalTestAbstract().

◆ m_sminus

float vpStatisticalTestMeanAdjustedCUSUM::m_sminus
protected

◆ m_splus

float vpStatisticalTestMeanAdjustedCUSUM::m_splus
protected

◆ m_stdev

◆ m_stdevmin

float vpStatisticalTestAbstract::m_stdevmin
protectedinherited

Minimum allowed standard deviation of the monitored signal.

Definition at line 122 of file vpStatisticalTestAbstract.h.

Referenced by setMinStdev(), updateStatistics(), and vpStatisticalTestAbstract().

◆ m_sumForMean

float vpStatisticalTestAbstract::m_sumForMean
protectedinherited

Sum of the samples used to compute the mean and standard deviation.

Definition at line 123 of file vpStatisticalTestAbstract.h.

Referenced by init(), vpStatisticalTestMeanAdjustedCUSUM::init(), operator=(), updateStatistics(), and vpStatisticalTestAbstract().