Skip to content

Commit

Permalink
chainset test all functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mitzimorris committed Oct 20, 2024
1 parent f268f54 commit 1eda263
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/unit/mcmc/chainset_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ TEST_F(McmcChains, summary_stats) {
double theta_mad_expect = 0.1230906411;
EXPECT_NEAR(theta_mad_expect, bern_chains.max_abs_deviation("theta"), 0.00001);

double theta_mcse_mean_expect = 0.0032339916;
EXPECT_NEAR(theta_mcse_mean_expect, bern_chains.mcse_mean("theta"), 0.0001);

double theta_mcse_sd_expect = 0.0021642137;
EXPECT_NEAR(theta_mcse_sd_expect, bern_chains.mcse_sd("theta"), 0.0001);

Eigen::VectorXd probs(6);
probs << 0.0, 0.01, 0.05, 0.95, 0.99, 1.0;
Eigen::VectorXd quantiles_expect(6);
Expand Down

0 comments on commit 1eda263

Please sign in to comment.