Skip to content

Update Rust crate rand_distr to 0.5.1 - autoclosed#7684

Closed
oxide-renovate[bot] wants to merge 1 commit intomainfrom
renovate/rand_distr-0.x
Closed

Update Rust crate rand_distr to 0.5.1 - autoclosed#7684
oxide-renovate[bot] wants to merge 1 commit intomainfrom
renovate/rand_distr-0.x

Conversation

@oxide-renovate
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rand_distr (source) workspace.dependencies minor 0.4.3 -> 0.5.1

Release Notes

rust-random/rand_distr (rand_distr)

v0.5.1

Compare Source

Testing
  • Added building the crate to CI
Fixes
  • Fix missing import for no_std builds

v0.5.0

Compare Source

Dependencies and features
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.
  • Add plots for rand_distr distributions to documentation (#​1434)
  • Move some of the computations in Binomial from sample to new (#​1484)
  • Reimplement Poisson's rejection method to improve performance and correct sampling inaccuracies for large lambda values, this is a Value-breaking change (#​1560)

Configuration

📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@oxide-renovate oxide-renovate bot added the dependencies Pull requests that update a dependency file label Feb 28, 2025
@oxide-renovate oxide-renovate bot force-pushed the renovate/rand_distr-0.x branch from 7da7b26 to 8fc9d7e Compare February 28, 2025 07:11
@oxide-renovate oxide-renovate bot changed the title Update Rust crate rand_distr to 0.5.1 Update Rust crate rand_distr to 0.5.1 - autoclosed Feb 28, 2025
@oxide-renovate oxide-renovate bot closed this Feb 28, 2025
@oxide-renovate oxide-renovate bot deleted the renovate/rand_distr-0.x branch February 28, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants