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

no-std distrs

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

6 releases

0.2.1 Jan 1, 2023
0.2.0 Aug 29, 2022
0.1.3 Jul 31, 2022
0.1.1 Apr 21, 2022
0.1.0 Jan 3, 2022

#612 in Text processing

Download history 46/week @ 2023-12-18 10/week @ 2023-12-25 2/week @ 2024-01-01 15/week @ 2024-01-08 8/week @ 2024-01-15 32/week @ 2024-01-22 4/week @ 2024-01-29 9/week @ 2024-02-05 250/week @ 2024-02-12 137/week @ 2024-02-19 267/week @ 2024-02-26 32/week @ 2024-03-04 59/week @ 2024-03-11 47/week @ 2024-03-18 20/week @ 2024-03-25 263/week @ 2024-04-01

396 downloads per month
Used in 8 crates (6 directly)

Unlicense OR MIT

25KB
546 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