Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lrnv committed Jan 13, 2025
1 parent cf5cc47 commit e4d8b71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BivariateArchimedeanMethods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ function _cdf(C::ArchimedeanCopula{2,G}, u) where {G<:GumbelGenerator}
return 1 - LogExpFunctions.cexpexp(LogExpFunctions.logaddexp* lx₁, θ * lx₂) / θ)
end
function Distributions._logpdf(C::ArchimedeanCopula{2,G}, u) where {G<:GumbelGenerator}
!all(0 .< u .<= 1) && return eltype(u)(-Inf) # if not in range return -Inf
T = promote_type(Float64, eltype(u))
!all(0 .< u .<= 1) && return T(-Inf) # if not in range return -Inf

θ = C.G.θ
x₁, x₂ = -log(u[1]), -log(u[2])
Expand Down

0 comments on commit e4d8b71

Please sign in to comment.