Visual Servoing Platform
version 3.6.1 under development (2024-05-05)
|
Classes | |
struct | ParametersForAlgo |
Typedefs | |
typedef enum TutorialMeanDrift::TypeTest | TypeTest |
typedef struct TutorialMeanDrift::ParametersForAlgo | ParametersForAlgo |
Enumerations | |
enum | TypeTest { HINLKEY_TYPE_TEST = 0 , EWMA_TYPE_TEST = 1 , MEAN_ADJUSTED_CUSUM_TYPE_TEST = 2 , SHEWHART_TYPE_TEST = 3 , SIGMA_TYPE_TEST = 4 , COUNT_TYPE_TEST = 5 , UNKOWN_TYPE_TEST = COUNT_TYPE_TEST } |
Functions | |
std::string | typeTestToString (const TypeTest &type) |
TypeTest | typeTestFromString (const std::string &name) |
std::string | getAvailableTypeTest (const std::string &prefix="<", const std::string &sep=" , ", const std::string &suffix=">") |
template<typename T > | |
std::string | numberToString (const T &number) |
std::string | boolToString (const bool &boolean) |
std::string | wecoRulesToString (const bool rules[vpStatisticalTestShewhart::COUNT_WECO - 1], const std::string &prefix="[", const std::string &suffix="]", const std::string &sep=" , ") |
void | vectorOfStringToMeanDriftTypeArray (const std::vector< std::string > &names, bool array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT]) |
std::vector< std::string > | meanDriftArrayToVectorOfString (const bool array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT]) |
std::string | meanDriftArrayToString (const bool array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT], const std::string &prefix="[", const std::string &sep=" , ", const std::string &suffix="]") |
unsigned int | meanDriftArrayToNbActivated (const bool array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT]) |
Variables | |
const bool | CONST_ALL_ALARM_OFF [vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] = { false, false, false, false } |
const bool | CONST_ALL_ALARM_ON [vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] = { true, true, true, true } |
[Structure_Parameters]
Structure that contains the parameters of the different algorithms.
typedef enum TutorialMeanDrift::TypeTest TutorialMeanDrift::TypeTest |
[Enum_For_Test_Choice]
Enumeration that permits to choose which process test to use.
[Enum_For_Test_Choice]
Enumeration that permits to choose which process test to use.
Definition at line 54 of file tutorial-meandrift.cpp.
std::string TutorialMeanDrift::boolToString | ( | const bool & | boolean | ) |
Cast a boolean into a string.
[in] | boolean | The boolean to cast. |
Definition at line 165 of file tutorial-meandrift.cpp.
std::string TutorialMeanDrift::getAvailableTypeTest | ( | const std::string & | prefix = "<" , |
const std::string & | sep = " , " , |
||
const std::string & | suffix = ">" |
||
) |
Get the list of available TypeTest objects that are handled.
[in] | prefix | The prefix that should be placed before the list. |
[in] | sep | The separator between each element of the list. |
[in] | suffix | The suffix that should terminate the list. |
Definition at line 131 of file tutorial-meandrift.cpp.
References COUNT_TYPE_TEST, and typeTestToString().
unsigned int TutorialMeanDrift::meanDriftArrayToNbActivated | ( | const bool | array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] | ) |
Indicate how many alarms are set.
[in] | array | The array of boolean indicating which alarms are set. |
Definition at line 295 of file tutorial-meandrift.cpp.
References vpStatisticalTestAbstract::MEAN_DRIFT_COUNT.
Referenced by TutorialMeanDrift::ParametersForAlgo::ParametersForAlgo().
std::string TutorialMeanDrift::meanDriftArrayToString | ( | const bool | array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT], |
const std::string & | prefix = "[" , |
||
const std::string & | sep = " , " , |
||
const std::string & | suffix = "]" |
||
) |
Cast an array of boolean (de)activating the mean drift alarms into a single string listing all the alarms.
[in] | array | The array of boolean indicating which alarm are set. |
[in] | prefix | The returned string prefix. |
[in] | sep | The returned string separator. |
[in] | suffix | The returned string suffix. |
Definition at line 272 of file tutorial-meandrift.cpp.
References meanDriftArrayToVectorOfString().
std::vector<std::string> TutorialMeanDrift::meanDriftArrayToVectorOfString | ( | const bool | array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] | ) |
Cast an array of boolean (de)activating the mean drift alarms into the corresponding vector of strings.
[in] | array | The array of boolean indicating which alarm are set. |
Definition at line 248 of file tutorial-meandrift.cpp.
References vpStatisticalTestAbstract::MEAN_DRIFT_COUNT, and vpStatisticalTestAbstract::vpMeanDriftTypeToString().
Referenced by meanDriftArrayToString().
std::string TutorialMeanDrift::numberToString | ( | const T & | number | ) |
Cast a number type into a string.
T | Type of number. |
[in] | number | The number to cast. |
Definition at line 152 of file tutorial-meandrift.cpp.
TypeTest TutorialMeanDrift::typeTestFromString | ( | const std::string & | name | ) |
Permit to cast a string into a TypeTest, to cast a command line argument.
[in] | name | The name of the process test the user wants to use. |
Definition at line 106 of file tutorial-meandrift.cpp.
References COUNT_TYPE_TEST, typeTestToString(), and UNKOWN_TYPE_TEST.
std::string TutorialMeanDrift::typeTestToString | ( | const TypeTest & | type | ) |
[Enum_For_Test_Choice]
Permit to cast a TypeTest object into a string, for display purpose.
[in] | type | The TypeTest object we want to know the name. |
Definition at line 72 of file tutorial-meandrift.cpp.
References EWMA_TYPE_TEST, HINLKEY_TYPE_TEST, MEAN_ADJUSTED_CUSUM_TYPE_TEST, SHEWHART_TYPE_TEST, SIGMA_TYPE_TEST, and UNKOWN_TYPE_TEST.
Referenced by getAvailableTypeTest(), and typeTestFromString().
void TutorialMeanDrift::vectorOfStringToMeanDriftTypeArray | ( | const std::vector< std::string > & | names, |
bool | array[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] | ||
) |
Cast a vector of string into an array of boolean activating / deactivating the mean drift alarms.
[in] | names | The names of the alarms to set. |
[out] | array | The corresponding array of boolean. |
Definition at line 223 of file tutorial-meandrift.cpp.
References CONST_ALL_ALARM_OFF, vpStatisticalTestAbstract::MEAN_DRIFT_BOTH, vpStatisticalTestAbstract::MEAN_DRIFT_COUNT, vpStatisticalTestAbstract::MEAN_DRIFT_DOWNWARD, vpStatisticalTestAbstract::MEAN_DRIFT_UPWARD, and vpStatisticalTestAbstract::vpMeanDriftTypeFromString().
std::string TutorialMeanDrift::wecoRulesToString | ( | const bool | rules[vpStatisticalTestShewhart::COUNT_WECO - 1], |
const std::string & | prefix = "[" , |
||
const std::string & | suffix = "]" , |
||
const std::string & | sep = " , " |
||
) |
Write the WECO's rules used in the Shewhart's test in human readable format.
[in] | rules | The array indicating which WECO's rules are used. |
[in] | prefix | The first character(s) delimiting the array in the string. |
[in] | suffix | The last character(s) delimiting the array in the string. |
[in] | sep | The separator character(s). |
Definition at line 184 of file tutorial-meandrift.cpp.
References vpStatisticalTestShewhart::COUNT_WECO.
const bool TutorialMeanDrift::CONST_ALL_ALARM_OFF[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] = { false, false, false, false } |
Array that sets all the types of mean drift to deactivated.
Definition at line 209 of file tutorial-meandrift.cpp.
Referenced by vectorOfStringToMeanDriftTypeArray().
const bool TutorialMeanDrift::CONST_ALL_ALARM_ON[vpStatisticalTestAbstract::MEAN_DRIFT_COUNT] = { true, true, true, true } |
Array that sets all the types of mean drift to activated.
Definition at line 214 of file tutorial-meandrift.cpp.
Referenced by TutorialMeanDrift::ParametersForAlgo::ParametersForAlgo().