JuliaStats / Distributions.jl

A Julia package for probability distributions and associated functions.
Other
1.11k stars 417 forks source link

Poisson rand in Float32? #1163

Open rafaqz opened 4 years ago

rafaqz commented 4 years ago
rand(Poisson(0.2f0))
ERROR: MethodError: no method matching poisinvcdf(::Float32, ::Float64)

It would be nice if this just worked.

(I'm using Distributions.jl 23.8, julia 1.5)

andreasnoack commented 4 years ago

Ref #1071, https://github.com/JuliaStats/Distributions.jl/pull/1045#issuecomment-571559677, and https://github.com/JuliaStats/Distributions.jl/pull/951