From 185fcae896a18147ea283b4795e0ce67ddb78fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Theodor=20Bj=C3=B6rk?= Date: Thu, 22 Aug 2024 13:32:33 +0200 Subject: [PATCH] WIP --- src/utils/simple_sample.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/simple_sample.jl b/src/utils/simple_sample.jl index 16b004e..05bca3f 100644 --- a/src/utils/simple_sample.jl +++ b/src/utils/simple_sample.jl @@ -9,10 +9,9 @@ end A type that allows you to specify a additive proposal function in the log domain and a prior distrubution over the log of the branchlengths. It also holds the acceptance ratio acc_ratio (acc_ratio[1] stores the number of accepts, and acc_ratio[1] stores the number of rejects). """ struct BranchlengthSampler <: UnivariateSampler - #The first entry in acc_ratio holds the number of accepted proposals and the second entry holds the number of rejected proposals. - acc_ratio - log_bl_proposal - log_bl_prior + acc_ratio::Vector{Int} + log_bl_proposal::Distribution + log_bl_prior::Distribution BranchlengthSampler(log_bl_proposal,log_bl_prior) = new([0,0],log_bl_proposal,log_bl_prior) end