Skip to content

Commit

Permalink
test int data
Browse files Browse the repository at this point in the history
  • Loading branch information
odunbar committed Feb 1, 2025
1 parent 0d673b8 commit ab3c7db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/MarkovChainMonteCarlo/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,17 @@ end
# difference between mean_1 and ground truth comes from MCMC convergence and GP sampling
@test isapprox(posterior_mean_1, π / 2; atol = 4e-1)

# test with int data
obs_sample3 = [1]
mcmc_params3 = mcmc_params
mcmc_params3[:obs_sample] = obs_sample3
em_1 = test_gp_1(y, σ2_y, iopairs)
new_step, posterior_mean_1 = mcmc_test_template(prior, σ2_y, em_1; mcmc_params3...)
@test isapprox(new_step, 0.5; atol = 0.5)
# difference between mean_1 and ground truth comes from MCMC convergence and GP sampling
@test isapprox(posterior_mean_1, π / 2; atol = 4e-1)


end

@testset "Sine GP & pCN" begin
Expand Down

0 comments on commit ab3c7db

Please sign in to comment.