Skip to content

Commit 39c4d87

Browse files
sunxd3torfjelde
andauthored
Update src/gibbs.jl
Co-authored-by: Tor Erlend Fjelde <[email protected]>
1 parent 9361c39 commit 39c4d87

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/gibbs.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ An interface for block sampling in Markov Chain Monte Carlo (MCMC).
66
Gibbs sampling is a technique for dividing complex multivariate problems into simpler subproblems.
77
It allows different sampling methods to be applied to different parameters.
88
"""
9-
struct Gibbs <: AbstractMCMC.AbstractSampler
10-
sampler_map::NamedTuple
11-
parameter_names::Tuple{Vararg{Symbol}}
12-
13-
function Gibbs(sampler_map::NamedTuple)
14-
parameter_names = Tuple(keys(sampler_map))
15-
return new(sampler_map, parameter_names)
16-
end
9+
struct Gibbs{NT} <: AbstractMCMC.AbstractSampler
10+
sampler_map::NT
1711
end
1812

1913
struct GibbsState

0 commit comments

Comments
 (0)