Skip to content

Commit

Permalink
Fix InvGaussianCopula when theta==0 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv authored Nov 16, 2023
1 parent 7b66c5f commit f905bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArchimedeanCopulas/InvGaussianCopula.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ It has a few special cases:
struct InvGaussianCopula{d,T} <: ArchimedeanCopula{d}
θ::T
function InvGaussianCopula(d,θ)
if θ <= 0
if θ < 0
throw(ArgumentError("Theta must be non-negative."))
elseif θ == 0
return IndependentCopula(d)
Expand Down

0 comments on commit f905bc0

Please sign in to comment.