From 6d6f654c5db38e1e10dff342df1e4a8e32f2e63c Mon Sep 17 00:00:00 2001 From: Oskar Laverny Date: Tue, 20 Feb 2024 10:06:49 +0100 Subject: [PATCH] Add manually computed values --- test/RafteryTest.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/RafteryTest.jl b/test/RafteryTest.jl index 4afd52dd..48415f80 100644 --- a/test/RafteryTest.jl +++ b/test/RafteryTest.jl @@ -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]) @@ -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])