Dist Rust

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

:tada: Zero dependencies

Build Status

Installation

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

toml distrs = "0.2"

Getting Started

Normal

```rust use distrs::Normal;

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

Student’s t

```rust use distrs::StudentsT;

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

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:

sh git clone https://github.com/ankane/dist-rust.git cd dist-rust cargo test