Giter Site home page Giter Site logo

yeungonion / statrs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from statrs-dev/statrs

0.0 0.0 0.0 2.52 MB

Statistical computation library for Rust

Home Page: https://docs.rs/statrs/latest/statrs/

License: MIT License

Rust 99.84% Shell 0.16%

statrs's Introduction

statrs

tests MIT licensed Crate docs.rs

Statrs provides a host of statistical utilities for Rust scientific computing.

Included are a number of common distributions that can be sampled (i.e. Normal, Exponential, Student's T, Gamma, Uniform, etc.) plus common statistical functions like the gamma function, beta function, and error function.

This library began as port of the statistical capabilities in the C# Math.NET library. All unit tests in the library borrowed from Math.NET when possible and filled-in when not. Planned for future releases are continued implementations of distributions as well as porting over more statistical utilities.

Please check out the documentation here.

Usage

Add the most recent release to your Cargo.toml

[dependencies]
statrs = "*" # replace * by the latest version of the crate.

For examples, view the docs.

Running tests

If you'd like to run all suggested tests, you'll need to download some data from NIST, we have a script for this and formatting the data in the tests/ folder.

cargo test
./tests/gather_nist_data.sh && cargo test -- --include-ignored nist_

If you'd like to modify where the data is downloaded, you can use the environment variable, STATRS_NIST_DATA_DIR for running the script and the tests.

Contributing

Thanks for your help to improve the project! No contribution is too small and all contributions are valued.

Suggestions if you don't know where to start,

  • documentation is a great place to start, as you'll be able to identify the value of existing documentation better than its authors.
  • tests are valuable in demonstrating correct behavior, you can review test coverage on the CodeCov Report*, not live until #229 merged.
  • check out some of the issues marked help wanted.
  • look at what's not included from Math.NET's Distributions, Statistics, or related.

How to contribute

Clone the repo:

git clone https://github.com/statrs-dev/statrs

Create a feature branch:

git checkout -b <feature_branch> master

Write your code and docs, then ensure it is formatted:

The below sample modify in-place, use --check flag to view diff without making file changes. Not using fmt from +nightly may result in some warnings and different formatting. Our CI will fmt, but less chores in commit history are appreciated.

cargo +nightly fmt

After commiting your code:

git push -u origin <feature_branch>

Then submit a PR, preferably referencing the relevant issue, if it exists.

Commit messages

Please be explicit and and purposeful with commit messages. Conventional Commits encouraged.

Bad

Modify test code

Good

test: Update statrs::distribution::Normal test_cdf

Communication Expectations

Please allow at least one week before pinging issues/pr's.

statrs's People

Contributors

boxtown avatar troublescooter avatar yeungonion avatar freezylemon avatar mp4096 avatar vks avatar asayers avatar rationalash avatar sirfrancisbeaufort avatar michiel-de-muynck avatar warrenweckesser avatar tessob avatar millardjn avatar iago-lito avatar henryjac avatar sphqxe avatar mutlusun avatar doraneko94 avatar alimf17 avatar manifoldfr avatar nottotis avatar tonyrippy avatar rikhuijzer avatar saona-raimundo avatar palladinium avatar noamteyssier avatar marwes avatar larsgw avatar kalev avatar julianknodt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.