15using namespace yarp::os;
16using namespace yarp::sig;
147 if (options.check(
"mean") && options.check(
"std"))
149 mean=options.find(
"mean").asFloat64();
150 stdev=options.find(
"std").asFloat64();
155 for (
size_t i=0; i<
data.length(); i++)
166 stdev=sqrt(stdev/N-mean*mean);
170 double delta_check=0.0;
171 if (options.check(
"sorted"))
178 double delta_1=fabs(
data[i_1]-mean);
179 double delta_n=fabs(
data[i_n]-mean);
192 else for (
size_t i=0; i<
data.length(); i++)
197 double delta=fabs(
data[i]-mean);
198 if (delta>delta_check)
224 if (delta_check>tau*stdev)
230 if (options.check(
"recursive"))
243 else for (set<size_t>::iterator it=tmpRes.begin(); it!=tmpRes.end(); it++)
std::set< size_t > detect(const yarp::sig::Vector &data, const yarp::os::Property &options)
Perform outliers detection over the provided data.
ModifiedThompsonTau()
Default constructor.
std::set< size_t > recurIdx
std::map< size_t, double > tauLUP