19#ifndef PROCPSUMDISTIBUTE_H
20#define PROCPSUMDISTIBUTE_H
51 ProcPSUMDistribute(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& name,
const Config& cfg);
53 virtual void process(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
54 std::vector<MeteoData>& ovec);
56 static void SmartDistributePSUM(
const double& precip,
const size_t& start_idx,
const size_t& end_idx,
const size_t& paramindex, std::vector<MeteoData>& vecM);
57 static void CstDistributePSUM(
const double& precip,
const size_t& start_idx,
const size_t& end_idx,
const size_t& paramindex, std::vector<MeteoData>& vecM);
59 void parse_args(
const std::vector< std::pair<std::string, std::string> >& vecArgs);
60 static size_t findNextAccumulation(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
const Date& endDate,
size_t ii);
61 static void fillInterval(
const unsigned int& param, std::vector<MeteoData>& ivec,
const size_t& start,
const size_t& end,
const double value);
63 static const double thresh_rh, thresh_Dt;
64 double measured_period;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
Distributes precipitation on the preceeding timesteps in a physically plausible way.
Definition: ProcPSUMDistribute.h:49
ProcPSUMDistribute(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: ProcPSUMDistribute.cc:29
virtual void process(const unsigned int ¶m, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Distributes a precipitation sum over the most probable preceeding time steps. This works by looking a...
Definition: ProcPSUMDistribute.cc:51
static void CstDistributePSUM(const double &precip, const size_t &start_idx, const size_t &end_idx, const size_t ¶mindex, std::vector< MeteoData > &vecM)
Definition: ProcPSUMDistribute.cc:157
static void SmartDistributePSUM(const double &precip, const size_t &start_idx, const size_t &end_idx, const size_t ¶mindex, std::vector< MeteoData > &vecM)
Definition: ProcPSUMDistribute.cc:179
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67