From dc302fc0c958713c9f5e8b593690bf5aaa94e495 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 12 May 2020 00:49:20 -0400 Subject: Step angles drawn from Gaussian rather than uniform distribution. --- hadamard_mcmc.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadamard_mcmc.hpp b/hadamard_mcmc.hpp index 41d7a48..fb0bc86 100644 --- a/hadamard_mcmc.hpp +++ b/hadamard_mcmc.hpp @@ -84,11 +84,11 @@ public: transpose = t; axis_1 = a1; axis_2 = a2; - Δθ = rng.uniform(-θ0, θ0); + Δθ = rng.variate(0.0, θ0); } Givens(Orthogonal& m, double θ0, Rng& rng) : m(m) { - Δθ = rng.uniform(-θ0, θ0); + Δθ = rng.variate(0.0, θ0); unsigned axis1axis2 = rng.uniform((unsigned)0, m.size() * (m.size() - 1) - 1); axis_1 = axis1axis2 / (m.size() - 1); -- cgit v1.2.3-70-g09d2