Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Aug 2, 2024
1 parent 6980f44 commit fe56771
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/stan/mcmc/chainset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ class chainset {
double ess_s = analyze::split_rank_normalized_ess(s).first;
double ess_s2 = analyze::split_rank_normalized_ess(s2).first;
double ess_sd = std::min(ess_s, ess_s2);
return sd(index) * std::sqrt(std::exp(1) * std::pow(1 - 1 / ess_sd, ess_sd - 1) - 1);
return sd(index)
* std::sqrt(std::exp(1) * std::pow(1 - 1 / ess_sd, ess_sd - 1) - 1);
}

double mcse_sd(const std::string& name) const { return mcse_sd(index(name)); }
Expand Down
6 changes: 3 additions & 3 deletions src/test/unit/mcmc/chainset_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ TEST_F(McmcChains, mcse) {
// test against R implementation in pkg posterior
Eigen::VectorXd s8_mcse_mean(10), s8_mcse_sd(10);
s8_mcse_mean << 0.288379, 0.4741815, 0.2741001, 0.3294614, 0.2473758,
0.2665048, 0.2701363, 0.4740092, 0.3621771, 0.3832464;
s8_mcse_sd << 0.1841825, 0.2854258, 0.192332, 0.2919369, 0.2478025,
0.2207478, 0.2308452, 0.2522107, 0.2946896, 0.3184745;
0.2665048, 0.2701363, 0.4740092, 0.3621771, 0.3832464;
s8_mcse_sd << 0.1841825, 0.2854258, 0.192332, 0.2919369, 0.2478025, 0.2207478,
0.2308452, 0.2522107, 0.2946896, 0.3184745;

for (size_t i = 0; i < 10; ++i) {
auto mcse_mean = chain_2.mcse_mean(i + 7);
Expand Down

0 comments on commit fe56771

Please sign in to comment.