10 namespace simulation {
18 return mThresholds.at(idx);
27 for (i = 0; i < (int)mThresholds.size(); ++i) {
29 if (std::isnan(mThresholds[i]) || mData.at(idx) < mThresholds[i])
35 void setThreshold (
int idx,
double value);
37 mData.push_back(
value);
41 std::vector<double> mThresholds;
42 std::vector<double> mData;
49 #endif // TIMESERIES_H Definition: timeseries.h:12
double getThreshold(int idx) const
Definition: timeseries.h:17
Definition: decisiontreemanager.h:13
int evaluateThresholds(int idx)
Definition: timeseries.h:25
std::pair< box, unsigned > value
Definition: diffusion.cpp:30
double getValue(int idx) const
Definition: timeseries.h:21
void appendValue(double value)
Definition: timeseries.h:36
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23