Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump rand_distr from 0.4.3 to 0.5.1 #333

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Feb 21, 2025

Bumps rand_distr from 0.4.3 to 0.5.1.

Release notes

Sourced from rand_distr's releases.

0.5.1

What's Changed

New Contributors

Full Changelog: rust-random/rand_distr@0.5.0...0.5.1

0.5.0

Dependencies and features

  • Bump the MSRV to 1.61.0 (#1207, #1246, #1269, #1341, #1416); note that 1.60.0 may work for dependents when using --ignore-rust-version
  • Update to rand v0.9.0 (#1558)
  • Rename feature serde1 to serde (#1477)

API changes

  • Make distributions comparable with PartialEq (#1218)
  • 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)
  • Add WeightedIndexTree (#1372, #1444)
  • Add PertBuilder to allow specification of mean or mode (#1452)
  • Rename Zeta's parameter a to s (#1466)
  • Mark WeightError, PoissonError, BinomialError as #[non_exhaustive] (#1480)
  • Remove support for usage of isize as a WeightedAliasIndex weight (#1487)
  • Change parameter type of Zipf::new: n is now floating-point (#1518)

API changes: renames

  • Move Slice -> slice::Choose, EmptySlice -> slice::Empty (#1548)
  • Rename trait DistString -> SampleString (#1548)
  • Rename DistIter -> Iter, DistMap -> Map (#1548)
  • Move {Weight, WeightError, WeightedIndex} -> weighted::{Weight, Error, WeightedIndex} (#1548)
  • Move weighted_alias::{AliasableWeight, WeightedAliasIndex} -> weighted::{..} (#1548)
  • Move weighted_tree::WeightedTreeIndex -> weighted::WeightedTreeIndex (#1548)

Testing

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)
  • Fix Pert distribution where mode is close to (min + max) / 2 (#1452)
  • Fix panic in Binomial (#1484)
  • Limit the maximal acceptable lambda for Poisson to solve (#1312) (#1498)
  • Fix bug in Hypergeometric, this is a Value-breaking change (#1510)

Other changes

  • Remove unused fields from Gamma, NormalInverseGaussian and Zipf distributions (#1184) This breaks serialization compatibility with older versions.

... (truncated)

Changelog

Sourced from rand_distr's changelog.

[0.5.1]

Testing

  • Added building the crate to CI

Fixes

  • Fix missing import for no_std builds

[0.5.0] - 2025-01-27

Dependencies and features

  • Bump the MSRV to 1.61.0 (#1207, #1246, #1269, #1341, #1416); note that 1.60.0 may work for dependents when using --ignore-rust-version
  • Update to rand v0.9.0 (#1558)
  • Rename feature serde1 to serde (#1477)

API changes

  • Make distributions comparable with PartialEq (#1218)
  • 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)
  • Add WeightedIndexTree (#1372, #1444)
  • Add PertBuilder to allow specification of mean or mode (#1452)
  • Rename Zeta's parameter a to s (#1466)
  • Mark WeightError, PoissonError, BinomialError as #[non_exhaustive] (#1480)
  • Remove support for usage of isize as a WeightedAliasIndex weight (#1487)
  • Change parameter type of Zipf::new: n is now floating-point (#1518)

API changes: renames

  • Move Slice -> slice::Choose, EmptySlice -> slice::Empty (#1548)
  • Rename trait DistString -> SampleString (#1548)
  • Rename DistIter -> Iter, DistMap -> Map (#1548)
  • Move {Weight, WeightError, WeightedIndex} -> weighted::{Weight, Error, WeightedIndex} (#1548)
  • Move weighted_alias::{AliasableWeight, WeightedAliasIndex} -> weighted::{..} (#1548)
  • Move weighted_tree::WeightedTreeIndex -> weighted::WeightedTreeIndex (#1548)

Testing

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)
  • Fix Pert distribution where mode is close to (min + max) / 2 (#1452)
  • Fix panic in Binomial (#1484)
  • Limit the maximal acceptable lambda for Poisson to solve (#1312) (#1498)
  • Fix bug in Hypergeometric, this is a Value-breaking change (#1510)

Other changes

  • Remove unused fields from Gamma, NormalInverseGaussian and Zipf distributions (#1184) This breaks serialization compatibility with older versions.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rand_distr](https://github.com/rust-random/rand_distr) from 0.4.3 to 0.5.1.
- [Release notes](https://github.com/rust-random/rand_distr/releases)
- [Changelog](https://github.com/rust-random/rand_distr/blob/master/CHANGELOG.md)
- [Commits](rust-random/rand_distr@0.4.3...0.5.1)

---
updated-dependencies:
- dependency-name: rand_distr
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Author

dependabot bot commented on behalf of github Feb 21, 2025

The following labels could not be found: auto-dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants