Skip to content

Commit

Permalink
Merge pull request #392 from brian-j-smith/bjs/support
Browse files Browse the repository at this point in the history
Fix ambiguous Truncated insupport method for julia 0.4
  • Loading branch information
simonbyrne committed Jul 14, 2015
2 parents b8220bb + 0f55d97 commit d144c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/truncate.jl
Expand Up @@ -30,7 +30,7 @@ isupperbounded(d::Truncated) = isupperbounded(d.untruncated) || isfinite(d.upper
minimum(d::Truncated) = max(minimum(d.untruncated), d.lower)
maximum(d::Truncated) = min(maximum(d.untruncated), d.upper)

insupport{D<:UnivariateDistribution,S<:ValueSupport}(d::Truncated{D,S}, x::Real) =
insupport{D<:UnivariateDistribution}(d::Truncated{D,Union(Discrete,Continuous)}, x::Real) =
d.lower <= x <= d.upper && insupport(d.untruncated, x)


Expand Down

0 comments on commit d144c2f

Please sign in to comment.