From 73dcbc2356539a48939cf0cc8274d788265d3bc9 Mon Sep 17 00:00:00 2001 From: monty Date: Thu, 2 Nov 2023 11:47:06 -0600 Subject: [PATCH] Real --- src/AffineInvariantMCMC.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AffineInvariantMCMC.jl b/src/AffineInvariantMCMC.jl index 40880aa..a03d588 100644 --- a/src/AffineInvariantMCMC.jl +++ b/src/AffineInvariantMCMC.jl @@ -41,7 +41,7 @@ Reference: Goodman & Weare, "Ensemble samplers with affine invariance", Communications in Applied Mathematics and Computational Science, DOI: 10.2140/camcos.2010.5.65, 2010. """ -function sample(llhood::Function, numwalkers::Integer, x0::AbstractMatrix, numsamples_perwalker::Integer, thinning::Integer, a::Number=2.; filename::AbstractString="", load::Bool=true, save::Bool=true, rng::Random.AbstractRNG=Random.GLOBAL_RNG) +function sample(llhood::Function, numwalkers::Integer, x0::AbstractMatrix{<:Real}, numsamples_perwalker::Integer, thinning::Integer, a::Number=2.; filename::AbstractString="", load::Bool=true, save::Bool=true, rng::Random.AbstractRNG=Random.GLOBAL_RNG) if filename != "" && isfile(filename) && load chain, llhoodvals = JLD2.load(filename, "chain", "llhoods") end