54 FilterRate(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& name,
const Config& cfg);
56 virtual void process(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
57 std::vector<MeteoData>& ovec);
60 typedef enum IMPLEMENTATION_TYPE {
65 } implementation_type;
67 void parse_args(
const std::vector< std::pair<std::string, std::string> >& vecArgs);
68 static size_t findNextPoint(
const std::vector<MeteoData>& vecM,
const unsigned int& param,
const size_t& start_idx);
69 static double getRate(
const std::vector<MeteoData>& vecM,
const unsigned int& param,
const size_t& idx,
const size_t& cmp_idx);
70 bool filterOut(
const std::vector<MeteoData>& vecM,
const unsigned int& param,
const size_t& idx,
const size_t& last_good,
const size_t& next_good)
const;
72 double min_rate_of_change, max_rate_of_change;
73 implementation_type methodParam;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
Rate of change filter.
Definition: FilterRate.h:52
virtual void process(const unsigned int ¶m, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: FilterRate.cc:104
FilterRate(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: FilterRate.cc:27
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67