hops
include
hops
MarkovChain
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
{
6
AdaptiveMetropolis
,
7
BallWalk
,
8
CoordinateHitAndRun
,
9
CSmMALA
,
10
DikinWalk
,
11
Gaussian
,
12
HitAndRun
,
13
};
14
15
16
std::string
MarkovChainTypeToFullString
(
MarkovChainType
markovChainType) {
17
switch
(markovChainType) {
18
case
MarkovChainType::AdaptiveMetropolis
:
19
return
"Adaptive Metropolis"
;
20
case
MarkovChainType::BallWalk
:
21
return
"Ball Walk"
;
22
case
MarkovChainType::CoordinateHitAndRun
:
23
return
"Coordinate Hit-and-Run"
;
24
case
MarkovChainType::CSmMALA
:
25
return
"Constrained Simplified manifold Metropolis Adjusted Langevin Algorithm"
;
26
case
MarkovChainType::DikinWalk
:
27
return
"Dikin Walk"
;
28
case
MarkovChainType::Gaussian
:
29
return
"Gaussian Random Walk"
;
30
case
MarkovChainType::HitAndRun
:
31
return
"Hit-and-Run"
;
32
default
:
33
throw
std::runtime_error(
"Bug in switch case."
);
34
}
35
}
36
37
std::string
MarkovChainTypeToShortcutString
(
MarkovChainType
markovChainType) {
38
switch
(markovChainType) {
39
case
MarkovChainType::AdaptiveMetropolis
:
40
return
"AM"
;
41
case
MarkovChainType::BallWalk
:
42
return
"BW"
;
43
case
MarkovChainType::CoordinateHitAndRun
:
44
return
"CHR"
;
45
case
MarkovChainType::CSmMALA
:
46
return
"CSmMALA"
;
47
case
MarkovChainType::DikinWalk
:
48
return
"DW"
;
49
case
MarkovChainType::Gaussian
:
50
return
"G"
;
51
case
MarkovChainType::HitAndRun
:
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
Generated by
1.8.17