iCub-main
outliersDetection.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2018 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms
7  * of the BSD-3-Clause license. See the accompanying LICENSE file for
8  * details.
9 */
10 
22 #ifndef __OUTLIERSDETECTION_H__
23 #define __OUTLIERSDETECTION_H__
24 
25 #include <map>
26 #include <set>
27 
28 #include <yarp/os/Property.h>
29 #include <yarp/sig/Vector.h>
30 
31 namespace iCub
32 {
33 
34 namespace ctrl
35 {
36 
43 {
44 public:
51  virtual std::set<size_t> detect(const yarp::sig::Vector &data,
52  const yarp::os::Property &options) = 0;
53 
57  virtual ~OutliersDetection() { }
58 };
59 
60 
67 {
68 protected:
69  std::map<size_t,double> tauLUP;
70  std::set<size_t> recurIdx;
71 
72 public:
77 
96  std::set<size_t> detect(const yarp::sig::Vector &data,
97  const yarp::os::Property &options);
98 
102  virtual ~ModifiedThompsonTau() { }
103 };
104 
105 }
106 
107 }
108 
109 #endif
110 
111 
112 
iCub
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.
Definition: emotionInterface.h:17
iCub::ctrl::OutliersDetection
Definition: outliersDetection.h:42
iCub::ctrl::ModifiedThompsonTau::ModifiedThompsonTau
ModifiedThompsonTau()
Default constructor.
Definition: outliersDetection.cpp:21
data
@ data
Definition: ST_M1_dataType.h:64
iCub::ctrl::ModifiedThompsonTau::recurIdx
std::set< size_t > recurIdx
Definition: outliersDetection.h:70
iCub::ctrl::ModifiedThompsonTau::detect
std::set< size_t > detect(const yarp::sig::Vector &data, const yarp::os::Property &options)
Perform outliers detection over the provided data.
Definition: outliersDetection.cpp:137
iCub::ctrl::ModifiedThompsonTau::tauLUP
std::map< size_t, double > tauLUP
Definition: outliersDetection.h:69
iCub::ctrl::ModifiedThompsonTau
Definition: outliersDetection.h:66
iCub::ctrl::ModifiedThompsonTau::~ModifiedThompsonTau
virtual ~ModifiedThompsonTau()
Virtual destructor.
Definition: outliersDetection.h:102
iCub::ctrl::OutliersDetection::detect
virtual std::set< size_t > detect(const yarp::sig::Vector &data, const yarp::os::Property &options)=0
Perform outliers detection over the provided data.
iCub::ctrl::OutliersDetection::~OutliersDetection
virtual ~OutliersDetection()
Virtual destructor.
Definition: outliersDetection.h:57