Skip to content

Commit

Permalink
Update to current Truncated Distributions constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-j-smith committed Dec 11, 2014
1 parent 97e18a8 commit 63079f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ julia 0.3
Cairo 0.2.14
Calculus 0.1.3
Compose 0.3.5
Distributions 0.6.0
Distributions 0.6.2
Gadfly 0.3.5
Graphs 0.4.2
PDMats 0.3
Expand Down
2 changes: 1 addition & 1 deletion src/distributions/flat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ insupport(d::Flat, x::Real) = true
logpdf(d::Flat, x::Real) = 0.0

function Truncated(d::Flat, l::Float64, u::Float64)
Truncated{typeof(d),Continuous}(d, l, u, 0.0, 1.0, 1.0, 0.0)
Truncated{typeof(d)}(d, l, u, 0.0, 1.0, 1.0, 0.0)
end
2 changes: 1 addition & 1 deletion src/distributions/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ end
#################### TransformDistribution ####################

typealias TransformDistribution{T<:ContinuousUnivariateDistribution}
Union(T, Truncated{T, Continuous})
Union(T, Truncated{T})

function link(d::TransformDistribution, x, transform::Bool=true)
if transform
Expand Down

0 comments on commit 63079f3

Please sign in to comment.