hops
SimpleExpectedSquaredJumpDistanceTuner.hpp
Go to the documentation of this file.
1 #ifndef HOPS_SIMPLEEXPECTEDSQUAREDJUMPDISTANCETUNER_HPP
2 #define HOPS_SIMPLEEXPECTEDSQUAREDJUMPDISTANCETUNER_HPP
3 
10 
11 #include <chrono>
12 #include <cmath>
13 #include <memory>
14 #include <stdexcept>
15 #include <vector>
16 
17 namespace hops {
19  public:
20  struct param_type {
22  //size_t maximumTotalIterations;
28 
30  //size_t maximumTotalIterations,
31  size_t stepSizeGridSize,
32  double stepSizeLowerBound,
33  double stepSizeUpperBound,
34  bool considerTimeCost,
36  );
37  };
38 
47  static bool
48  tune(std::vector<std::shared_ptr<MarkovChain>>&,
49  std::vector<RandomNumberGenerator>&,
50  const param_type&);
51 
60  static bool
61  tune(double&,
62  double&,
63  std::vector<std::shared_ptr<MarkovChain>>&,
64  std::vector<RandomNumberGenerator>&,
65  const param_type&);
66 
68  };
69 }
70 
71 #endif //HOPS_SIMPLEEXPECTEDSQUAREDJUMPDISTANCETUNER_HPP
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::stepSizeUpperBound
double stepSizeUpperBound
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:25
hops::SimpleExpectedSquaredJumpDistanceTuner::tune
static bool tune(std::vector< std::shared_ptr< MarkovChain >> &, std::vector< RandomNumberGenerator > &, const param_type &)
tunes markov chain acceptance rate by nested intervals. The chain is not guaranteed to have converged...
FileWriterType.hpp
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::iterationsToTestStepSize
size_t iterationsToTestStepSize
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:21
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::outputDirectory
std::string outputDirectory
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:27
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::param_type
param_type(size_t iterationsToTestStepSize, size_t stepSizeGridSize, double stepSizeLowerBound, double stepSizeUpperBound, bool considerTimeCost, std::string outputDirectory)
Definition: SimpleExpectedSquaredJumpDistanceTuner.cpp:103
FileWriterFactory.hpp
hops::SimpleExpectedSquaredJumpDistanceTuner
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:18
ExpectedSquaredJumpDistance.hpp
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:20
hops
Definition: CsvReader.hpp:8
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::stepSizeLowerBound
double stepSizeLowerBound
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:24
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::stepSizeGridSize
size_t stepSizeGridSize
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:23
MarkovChain.hpp
hops::SimpleExpectedSquaredJumpDistanceTuner::param_type::considerTimeCost
bool considerTimeCost
Definition: SimpleExpectedSquaredJumpDistanceTuner.hpp:26
MarkovChainAttribute.hpp
string
NAME string(REPLACE ".cpp" "_bin" example_name ${example_filename}) if($
Definition: hops/Third-party/HighFive/src/examples/CMakeLists.txt:6
FileWriter.hpp
hops::SimpleExpectedSquaredJumpDistanceTuner::SimpleExpectedSquaredJumpDistanceTuner
SimpleExpectedSquaredJumpDistanceTuner()=delete