Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodor Björk authored and Theodor Björk committed Aug 22, 2024
1 parent fc02a8b commit 185fcae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/utils/simple_sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 185fcae

Please sign in to comment.