19#ifndef PROCQUANTILEMAPPING_H
20#define PROCQUANTILEMAPPING_H
70 ProcQuantileMapping(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& name,
const Config& cfg);
72 virtual void process(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
73 std::vector<MeteoData>& ovec);
76 void correctPeriod(
const unsigned int& param,
const size_t& idx_start,
const size_t& idx_end,
const std::vector<MeteoData>& ivec, std::vector<MeteoData>& ovec)
const;
77 void writeQuantiles(
const std::vector<double>& thresholds,
const std::vector<double>& vecX,
const std::string& parameter,
const std::string& station)
const;
78 double getCorrection(
const std::vector<double>& thresholds,
const double& value)
const;
79 static size_t getQuantile(
const std::vector<double>& thresholds,
const double& value);
80 std::vector< std::pair<size_t, size_t> >
getStarts(
const std::vector<MeteoData>& ivec)
const;
81 void parse_args(
const std::vector< std::pair<std::string, std::string> >& vecArgs);
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
Quantile Mapping correction.
Definition: ProcQuantileMapping.h:68
double getCorrection(const std::vector< double > &thresholds, const double &value) const
Definition: ProcQuantileMapping.cc:101
virtual void process(const unsigned int ¶m, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: ProcQuantileMapping.cc:37
void writeQuantiles(const std::vector< double > &thresholds, const std::vector< double > &vecX, const std::string ¶meter, const std::string &station) const
Definition: ProcQuantileMapping.cc:52
void parse_args(const std::vector< std::pair< std::string, std::string > > &vecArgs)
Definition: ProcQuantileMapping.cc:158
static size_t getQuantile(const std::vector< double > &thresholds, const double &value)
Definition: ProcQuantileMapping.cc:109
void correctPeriod(const unsigned int ¶m, const size_t &idx_start, const size_t &idx_end, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec) const
Definition: ProcQuantileMapping.cc:75
double period_duration
Definition: ProcQuantileMapping.h:85
ProcQuantileMapping(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: ProcQuantileMapping.cc:30
std::vector< double > quantiles
Definition: ProcQuantileMapping.h:83
std::vector< double > corrections
Definition: ProcQuantileMapping.h:83
bool write_quantiles
Definition: ProcQuantileMapping.h:87
std::string root_path
Definition: ProcQuantileMapping.h:84
char type
Definition: ProcQuantileMapping.h:86
std::vector< std::pair< size_t, size_t > > getStarts(const std::vector< MeteoData > &ivec) const
Definition: ProcQuantileMapping.cc:123
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67