Crate distrs

Source
Expand description

§Dist Rust

PDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions

🎉 Zero dependencies

Build Status

§Installation

Add this line to your application’s Cargo.toml under [dependencies]:

distrs = "0.2"

§Getting Started

§Normal

use distrs::Normal;

Normal::pdf(x, mean, std_dev);
Normal::cdf(x, mean, std_dev);
Normal::ppf(p, mean, std_dev);

§Student’s t

use distrs::StudentsT;

StudentsT::pdf(x, df);
StudentsT::cdf(x, df);
StudentsT::ppf(p, df);

§Features

  • no_std - enable no_std support (requires libm)

§References

§History

View the changelog

§Contributing

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

Structs§

Normal
The normal distribution.
StudentsT
The Student’s t distribution.