19#ifndef RESAMPLINGREGRESSIONFILL_H
20#define RESAMPLINGREGRESSIONFILL_H
23#include <unordered_map>
67 RegressionFill(
const std::string& i_algoname,
const std::string& i_parname,
const double& dflt_window_size,
const std::vector< std::pair<std::string, std::string> >& vecArgs);
69 void resample(
const std::string& stationHash,
const size_t& index,
const ResamplingPosition& position,
const size_t& paramindex,
70 const std::vector<MeteoData>& vecM,
MeteoData& md);
71 void resample(
const std::string& stationHash,
const size_t& index,
const ResamplingPosition& position,
const size_t& paramindex,
72 const std::vector<MeteoData>& vecM,
MeteoData& md,
const std::vector<METEO_SET>& additional_stations);
75 bool findValueAt(
const std::vector<MeteoData>& support_station,
const Date& date,
const size_t& paramindex,
double& value);
76 void getRegressionData(
const size_t index,
const size_t paramindex,
const std::vector<MeteoData>& vecM,
const std::vector<METEO_SET>& additional_stations, std::vector<double>& x, std::vector<double>& y, std::vector<Date>& dates);
78 double linear(
double julian_date,
const std::vector<double>& coefficients);
81 std::unordered_map<size_t, std::vector<double>> regression_coefficients;
86 bool printed_info =
false;
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:107
Fill missing values from a station, using another station as reference.
Definition: RegressionFill.h:59
void getRegressionData(const size_t index, const size_t paramindex, const std::vector< MeteoData > &vecM, const std::vector< METEO_SET > &additional_stations, std::vector< double > &x, std::vector< double > &y, std::vector< Date > &dates)
Definition: RegressionFill.cc:75
double linear(double julian_date, const std::vector< double > &coefficients)
Definition: RegressionFill.cc:91
RegressionFill(const std::string &i_algoname, const std::string &i_parname, const double &dflt_window_size, const std::vector< std::pair< std::string, std::string > > &vecArgs)
Definition: RegressionFill.cc:27
std::string toString() const
Definition: RegressionFill.cc:50
void resample(const std::string &stationHash, const size_t &index, const ResamplingPosition &position, const size_t ¶mindex, const std::vector< MeteoData > &vecM, MeteoData &md)
Definition: RegressionFill.cc:98
RegressionType
Definition: RegressionFill.h:61
@ CUBIC
Definition: RegressionFill.h:64
@ QUADRATIC
Definition: RegressionFill.h:63
@ LINEAR
Definition: RegressionFill.h:62
bool findValueAt(const std::vector< MeteoData > &support_station, const Date &date, const size_t ¶mindex, double &value)
Definition: RegressionFill.cc:62
Interface class for the temporal resampling algorithms.
Definition: ResamplingAlgorithms.h:43
ResamplingPosition
Definition: ResamplingAlgorithms.h:46