Crates.io | statrs |
lib.rs | statrs |
version | 0.17.1 |
source | src |
created_at | 2016-08-11 05:41:36.566001 |
updated_at | 2024-06-08 05:08:43.335332 |
description | Statistical computing library for Rust |
homepage | https://github.com/statrs-dev/statrs |
repository | https://github.com/statrs-dev/statrs |
max_upload_size | |
id | 5948 |
size | 711,468 |
Statrs provides a host of statistical utilities for Rust scientific computing.
Included are a number of common distributions that can be sampled (i.e. Normal, Exponential, Student's T, Gamma, Uniform, etc.) plus common statistical functions like the gamma function, beta function, and error function.
This library began as port of the statistical capabilities in the C# Math.NET library. All unit tests in the library borrowed from Math.NET when possible and filled-in when not. Planned for future releases are continued implementations of distributions as well as porting over more statistical utilities.
Please check out the documentation here.
Add the most recent release to your Cargo.toml
[dependencies]
statrs = "*" # replace * by the latest version of the crate.
For examples, view the docs.
Thanks for your help to improve the project! No contribution is too small and all contributions are valued.
Suggestions if you don't know where to start,
Clone the repo:
git clone https://github.com/statrs-dev/statrs
Create a feature branch:
git checkout -b <feature_branch> master
Write your code and docs, then ensure it is formatted:
The below sample modify in-place, use --check
flag to view diff without making file changes.
Not using fmt
from +nightly may result in some warnings and different formatting.
Our CI will fmt
, but less chores in commit history are appreciated.
cargo +nightly fmt
After commiting your code:
git push -u origin <feature_branch>
Then submit a PR, preferably referencing the relevant issue, if it exists.
Please be explicit and and purposeful with commit messages. Conventional Commits encouraged.
Modify test code
test: Update statrs::distribution::Normal test_cdf
Please allow at least one week before pinging issues/pr's.