![]() |
Visual Servoing Platform version 3.6.0
|
#include <vpHinkley.h>
Public Types | |
enum | vpHinkleyJumpType { noJump , downwardJump , upwardJump } |
Public Member Functions | |
vpHinkley () | |
virtual | ~vpHinkley () |
vpHinkley (double alpha, double delta) | |
void | init () |
void | init (double alpha, double delta) |
void | setDelta (double delta) |
void | setAlpha (double alpha) |
vpHinkleyJumpType | testDownwardJump (double signal) |
vpHinkleyJumpType | testUpwardJump (double signal) |
vpHinkleyJumpType | testDownUpwardJump (double signal) |
double | getMean () |
double | getSk () |
double | getMk () |
double | getTk () |
double | getNk () |
Static Public Member Functions | |
static void | print (vpHinkleyJumpType jump) |
This class implements the Hinkley's cumulative sum test.
The Hinkley's cumulative sum test is designed to detect jump in mean of an observed signal
Two tests are performed in parallel to look for downwards or upwards jumps in
In which
A downward jump is detected if
To detect only downward jumps in
If a jump is detected, the jump location is given by the last instant
Definition at line 91 of file vpHinkley.h.
Indicates if a jump is detected by the Hinkley test.
Enumerator | |
---|---|
noJump | No jump is detected by the Hinkley test. |
downwardJump | A downward jump is detected by the Hinkley test. |
upwardJump | An upward jump is detected by the Hinkley test. |
Definition at line 97 of file vpHinkley.h.
vpHinkley::vpHinkley | ( | ) |
Constructor.
Call init() to initialise the Hinkley's test and set
By default
Definition at line 73 of file vpHinkley.cpp.
|
virtual |
Destructor.
Definition at line 122 of file vpHinkley.cpp.
vpHinkley::vpHinkley | ( | double | alpha_val, |
double | delta_val | ||
) |
Constructor.
Call init() to initialise the Hinkley's test and set
alpha_val | : ![]() |
delta_val | : ![]() |
Definition at line 91 of file vpHinkley.cpp.
|
inline |
Definition at line 123 of file vpHinkley.h.
|
inline |
Definition at line 134 of file vpHinkley.h.
|
inline |
Definition at line 146 of file vpHinkley.h.
|
inline |
Definition at line 129 of file vpHinkley.h.
|
inline |
Definition at line 141 of file vpHinkley.h.
void vpHinkley::init | ( | ) |
Initialise the Hinkley's test by setting the mean signal value
Definition at line 130 of file vpHinkley.cpp.
Referenced by init().
void vpHinkley::init | ( | double | alpha_val, |
double | delta_val | ||
) |
Call init() to initialise the Hinkley's test and set
alpha_val | : ![]() |
delta_val | : ![]() |
Definition at line 109 of file vpHinkley.cpp.
References init(), setAlpha(), and setDelta().
|
static |
Definition at line 419 of file vpHinkley.cpp.
References downwardJump, noJump, and upwardJump.
void vpHinkley::setAlpha | ( | double | alpha_val | ) |
Set the value of
Definition at line 159 of file vpHinkley.cpp.
Referenced by init().
void vpHinkley::setDelta | ( | double | delta | ) |
Set the value of
Definition at line 150 of file vpHinkley.cpp.
Referenced by init().
vpHinkley::vpHinkleyJumpType vpHinkley::testDownUpwardJump | ( | double | signal | ) |
Perform the Hinkley test. A downward jump is detected if
signal | : Observed signal ![]() |
Definition at line 290 of file vpHinkley.cpp.
References downwardJump, noJump, upwardJump, and vpCDEBUG.
vpHinkley::vpHinkleyJumpType vpHinkley::testDownwardJump | ( | double | signal | ) |
Perform the Hinkley test. A downward jump is detected if
signal | : Observed signal ![]() |
Definition at line 171 of file vpHinkley.cpp.
References downwardJump, noJump, upwardJump, and vpCDEBUG.
vpHinkley::vpHinkleyJumpType vpHinkley::testUpwardJump | ( | double | signal | ) |
Perform the Hinkley test. An upward jump is detected if
signal | : Observed signal ![]() |
Definition at line 231 of file vpHinkley.cpp.
References downwardJump, noJump, upwardJump, and vpCDEBUG.