19#ifndef PROCAGGREGATE_H
20#define PROCAGGREGATE_H
62 ProcAggregate(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& name,
const Config& cfg);
64 virtual void process(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
65 std::vector<MeteoData>& ovec);
68 typedef enum AGGREGATE_TYPE {
77 void parse_args(
const std::vector< std::pair<std::string, std::string> >& vecArgs);
78 static void sumOverLastStep(std::vector<MeteoData>& ovec,
const unsigned int& param);
79 static double calc_min(
const std::vector<MeteoData>& ivec,
const unsigned int& param,
const size_t& start,
const size_t& end);
80 static double calc_max(
const std::vector<MeteoData>& ivec,
const unsigned int& param,
const size_t& start,
const size_t& end);
81 static double calc_mean(
const std::vector<MeteoData>& ivec,
const unsigned int& param,
const size_t& start,
const size_t& end);
82 static double calc_median(
const std::vector<MeteoData>& ivec,
const unsigned int& param,
const size_t& start,
const size_t& end);
83 static double calc_wind_avg(
const std::vector<MeteoData>& ivec,
const unsigned int& param,
const size_t& start,
const size_t& end);
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
Data aggregation.
Definition: ProcAggregate.h:60
ProcAggregate(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: ProcAggregate.cc:27
virtual void process(const unsigned int ¶m, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: ProcAggregate.cc:39
Definition: WindowedFilter.h:35