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 Oct 11, 2024
1 parent 35bdb07 commit 12811f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/stan/analyze/mcmc/split_rank_normalized_ess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ inline std::pair<double, double> split_rank_normalized_ess(
}

/**
* Computes the split effective sample size (split ESS)
* Computes the split effective sample size (split ESS)
* diagnostic for a set of per-chain draws.
*
* When the number of total draws N is odd, the last draw is ignored.
Expand All @@ -155,16 +155,15 @@ inline std::pair<double, double> split_rank_normalized_ess(
* @param chains matrix of per-chain draws, num_iters X chain
* @return potential scale reduction
*/
inline double split_basic_ess(
const Eigen::MatrixXd& chains) {
inline double split_basic_ess(const Eigen::MatrixXd& chains) {
Eigen::MatrixXd split_draws_matrix = split_chains(chains);
if (!is_finite_and_varies(split_draws_matrix)
|| split_draws_matrix.rows() < 4) {
return std::numeric_limits<double>::quiet_NaN();
}
return ess(split_draws_matrix);
}

} // namespace analyze
} // namespace stan

Expand Down

0 comments on commit 12811f2

Please sign in to comment.