rust-random / rand

A Rust library for random number generation.
https://crates.io/crates/rand
Other
1.67k stars 432 forks source link

Weibull doc numerics warning #1509

Closed benjamin-lieser closed 1 month ago

benjamin-lieser commented 1 month ago

This is a concrete proposal for https://github.com/rust-random/rand/issues/1507

I am also fine with not adding it, as the limitations are not specific to our implementation and people can figure this out on their own. I think a short reminder that Weibull does exhaust the floating point limits very quickly is worthwhile.

It also adds the pdf to the documentation, I find this always very helpful to make sure me and the library author using the same parameterization of the distribution.