statrs-dev / statrs

Statistical computation library for Rust
https://docs.rs/statrs/latest/statrs/
MIT License
546 stars 78 forks source link

Add logistic distribution #153

Closed dsaxton closed 2 years ago

dsaxton commented 2 years ago

This PR adds the logistic distribution to statrs, following the goal of trying to port over the distributions from https://github.com/mathnet/mathnet-numerics/tree/master/src/Numerics/Distributions. It's deviating a bit from some of the other implementations in statrs (e.g., Laplace) in that infinite parameters are not permitted, since I think it's incorrect to allow this. The pointwise test cases were calculated using the Python scipy library.

https://en.wikipedia.org/wiki/Logistic_distribution