summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 00:49:48 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-05-12 00:49:48 -0400
commit344a0a32c0f2c01570f4ecd15c01100fc7e07e8e (patch)
tree21a93487e3cc3d0e37553794f326538606315ef0
parentdc302fc0c958713c9f5e8b593690bf5aaa94e495 (diff)
downloadcode-344a0a32c0f2c01570f4ecd15c01100fc7e07e8e.tar.gz
code-344a0a32c0f2c01570f4ecd15c01100fc7e07e8e.tar.bz2
code-344a0a32c0f2c01570f4ecd15c01100fc7e07e8e.zip
Constructor now allows setting θ₀ manually.
-rw-r--r--hadamard_mcmc.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadamard_mcmc.hpp b/hadamard_mcmc.hpp
index fb0bc86..107622a 100644
--- a/hadamard_mcmc.hpp
+++ b/hadamard_mcmc.hpp
@@ -162,8 +162,8 @@ public:
double E;
Orthogonal M;
- MCMC(unsigned n, double β0, Measurement& A) : A(A), M(n), β(β0), row_storage(2 * n) {
- θ0 = M_PI;
+ MCMC(unsigned n, double β0, Measurement& A, double ε = M_PI) : A(A), M(n), β(β0), row_storage(2 * n) {
+ θ0 = ε;
E = M.energy();
}