MUQ
0.4.3
ThinScheduler.cpp
Go to the documentation of this file.
1
#include "
MUQ/SamplingAlgorithms/ThinScheduler.h
"
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
}
ThinScheduler.h
muq::SamplingAlgorithms::ThinScheduler::ShouldSave
virtual bool ShouldSave(int step) override
Definition:
ThinScheduler.cpp:10
muq::SamplingAlgorithms::ThinScheduler::ThinScheduler
ThinScheduler(boost::property_tree::ptree &pt)
Definition:
ThinScheduler.cpp:6
muq::SamplingAlgorithms::ThinScheduler::thinIncr
int thinIncr
Definition:
ThinScheduler.h:21
muq
Definition:
AllClassWrappers.h:6
doxygen_prep
modules
SamplingAlgorithms
src
ThinScheduler.cpp
Generated on Wed Jun 12 2024 00:48:28 for MUQ by
1.9.1