Skip to content

Commit

Permalink
Add manually computed values
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv committed Feb 20, 2024
1 parent c078cd4 commit 6d6f654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/RafteryTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ end

return cdf_value
end

@test prueba_CDF([0.5,3], [0.1,0.2,0.3]) 0.08236 atol=1e-4 # According to https://github.com/lrnv/Copulas.jl/pull/137#issuecomment-1953365273
@test prueba_CDF([0.5,3], [0.1,0.2,0.3]) cdf(RafteryCopula(3,0.5), [0.1,0.2,0.3])
@test prueba_CDF([0.8,2], [0.1,0.2]) cdf(RafteryCopula(2,0.8), [0.1,0.2])
@test prueba_CDF([0.2,2], [0.8,0.2]) cdf(RafteryCopula(2,0.2), [0.8,0.2])
Expand Down Expand Up @@ -101,6 +101,7 @@ end

return pdf_value
end
@test prueba_PDF([0.5,3], [0.1,0.2,0.3]) 1.99450 atol=1e-4 # According to https://github.com/lrnv/Copulas.jl/pull/137#issuecomment-1953375141
@test prueba_PDF([0.5,3], [0.1,0.2,0.3]) pdf(RafteryCopula(3,0.5), [0.1,0.2,0.3])
@test prueba_PDF([0.8,2], [0.1,0.2]) pdf(RafteryCopula(2,0.8), [0.1,0.2])
@test prueba_PDF([0.2,2], [0.8,0.2]) pdf(RafteryCopula(2,0.2), [0.8,0.2])
Expand Down

0 comments on commit 6d6f654

Please sign in to comment.