distrs

Crates.iodistrs
lib.rsdistrs
version0.2.2
sourcesrc
created_at2022-01-03 19:24:27.302504
updated_at2024-07-01 02:38:56.912537
descriptionPDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions
homepage
repositoryhttps://github.com/ankane/dist-rust
max_upload_size
id507274
size28,441
Andrew Kane (ankane)

documentation

README

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
Commit count: 57

cargo fmt