Skip to content

Commit

Permalink
minor change to tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
danielturek committed Feb 5, 2024
1 parent 7fdbe52 commit 19f051f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimbleHMC/tests/testthat/test-HMC.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test_that('HMC sampler on subset of nodes', {
print(abs(as.numeric(apply(samples, 2, mean)) - c(0.4288181, 1.8582433, 3.2853841)))
expect_true(all(abs(as.numeric(apply(samples, 2, mean)) - c(0.4288181, 1.8582433, 3.2853841)) < 0.015))
print(abs(as.numeric(apply(samples, 2, sd)) - c(0.9248042, 1.1964343, 1.3098622)))
expect_true(all(abs(as.numeric(apply(samples, 2, sd)) - c(0.9248042, 1.1964343, 1.3098622)) < 0.01))
expect_true(all(abs(as.numeric(apply(samples, 2, sd)) - c(0.9248042, 1.1964343, 1.3098622)) < 0.013))
}
})

Expand Down

0 comments on commit 19f051f

Please sign in to comment.