Skip to content

Commit

Permalink
Add printout of burn-in period to lfmcmc print (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher authored Dec 9, 2024
1 parent 2f42c2e commit cfbc814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion epiworld.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2181,7 +2181,8 @@ inline void LFMCMC<TData>::print(size_t burnin) const
printf_epiworld("___________________________________________\n\n");
printf_epiworld("LIKELIHOOD-FREE MARKOV CHAIN MONTE CARLO\n\n");

printf_epiworld("N Samples : %zu\n", m_n_samples);
printf_epiworld("N Samples (total) : %zu\n", m_n_samples);
printf_epiworld("N Samples (after burn-in period) : %zu\n", m_n_samples - burnin);

std::string abbr;
epiworld_double elapsed;
Expand Down
3 changes: 2 additions & 1 deletion include/epiworld/math/lfmcmc/lfmcmc-meat-print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ inline void LFMCMC<TData>::print(size_t burnin) const
printf_epiworld("___________________________________________\n\n");
printf_epiworld("LIKELIHOOD-FREE MARKOV CHAIN MONTE CARLO\n\n");

printf_epiworld("N Samples : %zu\n", m_n_samples);
printf_epiworld("N Samples (total) : %zu\n", m_n_samples);
printf_epiworld("N Samples (after burn-in period) : %zu\n", m_n_samples - burnin);

std::string abbr;
epiworld_double elapsed;
Expand Down

0 comments on commit cfbc814

Please sign in to comment.