| Crates.io | distrs |
| lib.rs | distrs |
| version | 0.2.2 |
| created_at | 2022-01-03 19:24:27.302504+00 |
| updated_at | 2024-07-01 02:38:56.912537+00 |
| description | PDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions |
| homepage | |
| repository | https://github.com/ankane/dist-rust |
| max_upload_size | |
| id | 507274 |
| size | 28,441 |
PDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions
🎉 Zero dependencies
Add this line to your application’s Cargo.toml under [dependencies]:
distrs = "0.2"
use distrs::Normal;
Normal::pdf(x, mean, std_dev);
Normal::cdf(x, mean, std_dev);
Normal::ppf(p, mean, std_dev);
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:
git clone https://github.com/ankane/dist-rust.git
cd dist-rust
cargo test