MUQ  0.4.3
ThinScheduler.cpp
Go to the documentation of this file.
2 
3 using namespace muq;
4 using namespace SamplingAlgorithms;
5 
6 ThinScheduler::ThinScheduler(boost::property_tree::ptree& pt) {
7  thinIncr = pt.get("ThinIncrement", 1);
8 }
9 
10 bool ThinScheduler::ShouldSave(int step) {
11  if (step % thinIncr == 0)
12  return true;
13  else
14  return false;
15 }
virtual bool ShouldSave(int step) override
ThinScheduler(boost::property_tree::ptree &pt)