Skip to content

v0.2.0

Compare
Choose a tag to compare
@lbarasti lbarasti released this 04 Apr 07:17
· 12 commits to master since this release

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).