Skip to content

rand_distr-0.5.0-alpha.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@dhardy dhardy released this 18 Feb 17:56
· 96 commits to master since this release
7ff0fc9

This is a pre-release. To depend on this version, use rand_distr = "=0.5.0-alpha.0" to prevent automatic updates (which can be expected to include breaking changes).

Additions

  • Make distributions comparable with PartialEq (#1218)
  • Add WeightedIndexTree (#1372)

Changes

  • Target rand version 0.9.0-alpha.0
  • Remove unused fields from Gamma, NormalInverseGaussian and Zipf distributions (#1184)
    This breaks serialization compatibility with older versions.
  • Dirichlet now uses const generics, which means that its size is required at compile time (#1292)
  • The Dirichlet::new_with_size constructor was removed (#1292)

Fixes

  • Fix Knuth's method so Poisson doesn't return -1.0 for small lambda (#1284)
  • Fix Poisson distribution instantiation so it return an error if lambda is infinite (#1291)
  • Fix Dirichlet sample for small alpha values to avoid NaN samples (#1209)
  • Fix infinite loop in Binomial distribution (#1325)