Skip to content

Commit cecedd6

Browse files
authored
[bug] Sklardist got picky (#319)
Fixes #318
1 parent 269962c commit cecedd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SklarDist.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ struct SklarDist{CT,TplMargins} <: Distributions.ContinuousMultivariateDistribut
5454
return new{typeof(C),typeof(m)}(C,m)
5555
end
5656
end
57+
SklarDist(C, m) = SklarDist(C, Tuple(m))
5758
Base.length(S::SklarDist{CT,TplMargins}) where {CT,TplMargins} = length(S.C)
5859
Base.eltype(S::SklarDist{CT,TplMargins}) where {CT,TplMargins} = Base.eltype(S.C)
5960
Distributions.cdf(S::SklarDist{CT,TplMargins},x) where {CT,TplMargins} = Distributions.cdf(S.C, collect(Distributions.cdf.(S.m,x)))

0 commit comments

Comments
 (0)