#student #cdf #quantile #normal #no-std #pdf-distribution

no-std distrs

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

8 releases

0.2.3 Apr 7, 2026
0.2.2 Jul 1, 2024
0.2.1 Jan 1, 2023
0.2.0 Aug 29, 2022
0.1.0 Jan 3, 2022

#188 in Text processing

Download history 15164/week @ 2026-02-22 14944/week @ 2026-03-01 15553/week @ 2026-03-08 10408/week @ 2026-03-15 8828/week @ 2026-03-22 10003/week @ 2026-03-29 8496/week @ 2026-04-05 11300/week @ 2026-04-12 9309/week @ 2026-04-19 9607/week @ 2026-04-26 7662/week @ 2026-05-03 10866/week @ 2026-05-10 10893/week @ 2026-05-17 8689/week @ 2026-05-24 7915/week @ 2026-05-31 11437/week @ 2026-06-07

40,183 downloads per month
Used in 21 crates (8 directly)

Unlicense OR MIT

29KB
767 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;

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

Student’s t

use distrs::StudentsT;

let pdf = StudentsT::pdf(x, df);
let cdf = StudentsT::cdf(x, df);
let ppf = 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

~145KB