#normal-distribution #student #cdf #distributions #function #dist #percent-point-quantile

no-std distrs

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

7 releases

0.2.2 Jul 1, 2024
0.2.1 Jan 1, 2023
0.2.0 Aug 29, 2022
0.1.3 Jul 31, 2022
0.1.0 Jan 3, 2022

#120 in Math

Download history 271/week @ 2024-11-29 1227/week @ 2024-12-06 862/week @ 2024-12-13 1051/week @ 2024-12-20 175/week @ 2024-12-27 391/week @ 2025-01-03 810/week @ 2025-01-10 259/week @ 2025-01-17 396/week @ 2025-01-24 171/week @ 2025-01-31 130/week @ 2025-02-07 230/week @ 2025-02-14 362/week @ 2025-02-21 297/week @ 2025-02-28 678/week @ 2025-03-07 1089/week @ 2025-03-14

2,446 downloads per month
Used in 13 crates (8 directly)

Unlicense OR MIT

26KB
544 lines

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

Dependencies

~98KB