PDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions
:tada: Zero dependencies
Add this line to your application’s Cargo.toml
under [dependencies]
:
toml
distrs = "0.2"
```rust use distrs::Normal;
Normal::pdf(x, mean, stddev); Normal::cdf(x, mean, stddev); Normal::ppf(p, mean, std_dev); ```
```rust use distrs::StudentsT;
StudentsT::pdf(x, df); StudentsT::cdf(x, df); StudentsT::ppf(p, df); ```
no_std
- enable no_std
support (requires libm)View the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
To get started with development:
sh
git clone https://github.com/ankane/dist-rust.git
cd dist-rust
cargo test