Skip to content

Commit

Permalink
Update comments in vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher committed Nov 4, 2024
1 parent 822a522 commit 16461b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vignettes/likelihood-free-mcmc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ sumfun <- function(dat) {
}
# Define the LFMCMC proposal function
# - Based on proposal_fun_normal from lfmcmc-meat.hpp
propfun <- function(params_prev) {
res <- params_prev + rnorm(length(params_prev), )
return(res)
Expand All @@ -97,7 +98,7 @@ kernelfun <- function(stats_now, stats_obs, epsilon) {
return(ifelse(sqrt(ans) < epsilon, 1.0, 0.0))
}
# Create the LFMCMC model using a norm reflective proposal function and a Gaussian kernel function
# Create the LFMCMC model
lfmcmc_model <- LFMCMC(model_sir) |>
set_simulation_fun(simfun) |>
set_summary_fun(sumfun) |>
Expand Down

0 comments on commit 16461b2

Please sign in to comment.