Skip to content

Commit

Permalink
Adding a note about the stored data in print
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Nov 25, 2024
1 parent 647094c commit af9056e
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -5,6 +5,8 @@ template<typename TData>
inline void LFMCMC<TData>::print(size_t burnin) const
{

// The summary statistics will have three values: mean, the 2.5%
// quantile, and the 97.5% quantile
std::vector< epiworld_double > summ_params(n_parameters * 3, 0.0);
std::vector< epiworld_double > summ_stats(n_statistics * 3, 0.0);

Expand Down Expand Up @@ -58,7 +60,6 @@ inline void LFMCMC<TData>::print(size_t burnin) const

// Computing the 95% Credible interval
std::sort(stat_k.begin(), stat_k.end());

summ_stats[k * 3 + 1u] =
stat_k[std::floor(.025 * n_samples_dbl)];
summ_stats[k * 3 + 2u] =
Expand Down

0 comments on commit af9056e

Please sign in to comment.