Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Apr 28, 2020
1 parent 6332a13 commit 160276b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Cubature = "667455a9-e2ce-5579-9412-b964f529a492"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"


[targets]
test = ["Test", "PyCall", "Cubature"]
1 change: 0 additions & 1 deletion src/DatagenCopulaBased.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module DatagenCopulaBased
using Distributed
using SharedArrays


include("sampleunivdists.jl")

# dispatching of the generator
Expand Down
8 changes: 4 additions & 4 deletions src/eliptic_fr_mo_copulas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct Gaussian_cop
end

"""
simulate_copula(t::Int, copula::Gaussian_cop)
simulate_copula(t::Int, copula::Gaussian_cop; rng::AbstractRNG = Random.GLOBAL_RNG)
Returns t realizations of the Gaussian copula
Expand Down Expand Up @@ -99,7 +99,7 @@ struct Student_cop
end

"""
simulate_copula(t::Int, copula::Student _cop)
simulate_copula(t::Int, copula::Student _cop; rng::AbstractRNG = Random.GLOBAL_RNG)
Returns t realizations of the t-Student Copula
Expand Down Expand Up @@ -187,7 +187,7 @@ struct Frechet_cop
end

"""
simulate_copula(t::Int, copula::Frechet_cop)
simulate_copula(t::Int, copula::Frechet_cop; rng::AbstractRNG = Random.GLOBAL_RNG)
Returns t realizatioins of data from the Frechet copula
Expand Down Expand Up @@ -337,7 +337,7 @@ struct Marshall_Olkin_cop
end

"""
simulate_copula(t::Int, copula::Marshall_Olkin_cop(λ))
simulate_copula(t::Int, copula::Marshall_Olkin_cop(λ); rng::AbstractRNG = Random.GLOBAL_RNG)
Returns t realizations of the n-variate Marshall-Olkin copula:
Expand Down
2 changes: 1 addition & 1 deletion test/higher_order_cors_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ end
@test pvalue(ExactOneSampleKSTest(x1[:,1], Normal(0,S[1]))) > α
@test pvalue(ExactOneSampleKSTest(x1[:,3], Normal(0,S[3]))) > α

@test norm(cor(y)-cor(x1))/norm(cor(y)) < 0.115
@test norm(cor(y)-cor(x1))/norm(cor(y)) < 0.118
@test maximum(abs.(cor(y)-cor(x1))) < 0.24

x1 = gcop2arch(y, ["amh" => [1,2,3]])
Expand Down

0 comments on commit 160276b

Please sign in to comment.