From 344a0a32c0f2c01570f4ecd15c01100fc7e07e8e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 12 May 2020 00:49:48 -0400 Subject: Constructor now allows setting θ₀ manually. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hadamard_mcmc.hpp | 4 ++-- 1 file 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(); } -- cgit v1.2.3-70-g09d2