hops
MarkovChainType.hpp
Go to the documentation of this file.
1 #ifndef HOPS_MARKOVCHAINTYPE_HPP
2 #define HOPS_MARKOVCHAINTYPE_HPP
3 
4 namespace hops {
5  enum class MarkovChainType {
7  BallWalk,
9  CSmMALA,
10  DikinWalk,
11  Gaussian,
12  HitAndRun,
13  };
14 
15 
17  switch(markovChainType) {
19  return "Adaptive Metropolis";
21  return "Ball Walk";
23  return "Coordinate Hit-and-Run";
25  return "Constrained Simplified manifold Metropolis Adjusted Langevin Algorithm";
27  return "Dikin Walk";
29  return "Gaussian Random Walk";
31  return "Hit-and-Run";
32  default:
33  throw std::runtime_error("Bug in switch case.");
34  }
35  }
36 
38  switch(markovChainType) {
40  return "AM";
42  return "BW";
44  return "CHR";
46  return "CSmMALA";
48  return "DW";
50  return "G";
52  return "HR";
53  default:
54  throw std::runtime_error("Bug in switch case.");
55  }
56 
57  }
58 }
59 
60 #endif //HOPS_MARKOVCHAINTYPE_HPP
hops::MarkovChainType::CoordinateHitAndRun
@ CoordinateHitAndRun
hops::MarkovChainType::AdaptiveMetropolis
@ AdaptiveMetropolis
hops::MarkovChainTypeToShortcutString
std::string MarkovChainTypeToShortcutString(MarkovChainType markovChainType)
Definition: MarkovChainType.hpp:37
hops::MarkovChainTypeToFullString
std::string MarkovChainTypeToFullString(MarkovChainType markovChainType)
Definition: MarkovChainType.hpp:16
hops::MarkovChainType::HitAndRun
@ HitAndRun
hops
Definition: CsvReader.hpp:8
hops::MarkovChainType::CSmMALA
@ CSmMALA
hops::MarkovChainType::Gaussian
@ Gaussian
string
NAME string(REPLACE ".cpp" "_bin" example_name ${example_filename}) if($
Definition: hops/Third-party/HighFive/src/examples/CMakeLists.txt:6
hops::MarkovChainType::DikinWalk
@ DikinWalk
hops::MarkovChainType::BallWalk
@ BallWalk
hops::MarkovChainType
MarkovChainType
Definition: MarkovChainType.hpp:5