v0.2.0
Parametrize Distribution
in the return type of Distribution#rand
.
This improves type resolution when mixing different distributions, for example in the expression
x = rand < 0.5 ? Normal.new(0.1, 0.02) : Uniform.new(0.2, 0.5)
x
is resolved to the type Distribution(Float64)
.