{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/373","labels_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/373/comments","events_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/373/events","html_url":"https://github.com/JuliaStats/Distributions.jl/issues/373","id":81463429,"number":373,"title":"Truncated Discrete Distributions","user":{"login":"bdeonovic","id":805168,"avatar_url":"https://avatars.githubusercontent.com/u/805168?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeonovic","html_url":"https://github.com/bdeonovic","followers_url":"https://api.github.com/users/bdeonovic/followers","following_url":"https://api.github.com/users/bdeonovic/following{/other_user}","gists_url":"https://api.github.com/users/bdeonovic/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeonovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeonovic/subscriptions","organizations_url":"https://api.github.com/users/bdeonovic/orgs","repos_url":"https://api.github.com/users/bdeonovic/repos","events_url":"https://api.github.com/users/bdeonovic/events{/privacy}","received_events_url":"https://api.github.com/users/bdeonovic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T14:10:38Z","updated_at":"2015-05-27T20:27:17Z","closed_at":null,"body":"Does this package support truncated discrete distributions? I tried \r\n\r\n```julia\r\njulia> Truncated(Geometric(1/4),1,5)\r\nERROR: `Truncated{D<:Distribution{Univariate,S<:ValueSupport}}` has no method matching Truncated{D<:Distribution{Univariate,S<:ValueSupport}}(::Geometric, ::Int64, ::Int64)\r\n```\r\n\r\nbut continuous distributions work \r\n```julia\r\njulia> Truncated(Normal(),1,5)\r\nTruncated(Normal(μ=0.0, σ=1.0), range=(1.0, 5.0))\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/comments/106062134","html_url":"https://github.com/JuliaStats/Distributions.jl/issues/373#issuecomment-106062134","issue_url":"https://api.github.com/repos/JuliaStats/Distributions.jl/issues/373","id":106062134,"user":{"login":"bdeonovic","id":805168,"avatar_url":"https://avatars.githubusercontent.com/u/805168?v=3","gravatar_id":"","url":"https://api.github.com/users/bdeonovic","html_url":"https://github.com/bdeonovic","followers_url":"https://api.github.com/users/bdeonovic/followers","following_url":"https://api.github.com/users/bdeonovic/following{/other_user}","gists_url":"https://api.github.com/users/bdeonovic/gists{/gist_id}","starred_url":"https://api.github.com/users/bdeonovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdeonovic/subscriptions","organizations_url":"https://api.github.com/users/bdeonovic/orgs","repos_url":"https://api.github.com/users/bdeonovic/repos","events_url":"https://api.github.com/users/bdeonovic/events{/privacy}","received_events_url":"https://api.github.com/users/bdeonovic/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T20:27:17Z","updated_at":"2015-05-27T20:27:17Z","body":"I made a pull request to do this, could you let me know how it looks?https://github.com/JuliaStats/Distributions.jl/pull/375"}}