#normal-distribution #student #pdf #cdf #function #zero #percent-point-quantile

no-std distrs

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

7 releases

new 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

#767 in Text processing

Download history 58/week @ 2024-03-13 42/week @ 2024-03-20 66/week @ 2024-03-27 74/week @ 2024-04-03 39/week @ 2024-04-10 60/week @ 2024-04-17 114/week @ 2024-04-24 57/week @ 2024-05-01 115/week @ 2024-05-08 152/week @ 2024-05-15 87/week @ 2024-05-22 126/week @ 2024-05-29 466/week @ 2024-06-05 447/week @ 2024-06-12 1002/week @ 2024-06-19 341/week @ 2024-06-26

2,275 downloads per month
Used in 12 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

~105KB