16 releases

0.8.3 May 25, 2024
0.8.2 Jun 25, 2023
0.8.1 Oct 12, 2022
0.6.0 Jun 9, 2022
0.2.2 Dec 31, 2021

#248 in Math

Download history 16/week @ 2024-07-23 4/week @ 2024-07-30 1/week @ 2024-09-24 16/week @ 2024-10-01

1,011 downloads per month

MIT/Apache

59KB
1K SLoC

STOCHASTA

This is stochasta.

A (hopefully) simple stochastic analysis library.

It is written in Rust and published at crates.io.

Example

use stochasta::CardDeck;
use stochasta::Probability;

fn main() {
    let coin = CardDeck::from(vec!["heads", "tails"]);
    
    assert_eq!(coin.size(), 2);
    assert_eq!(coin.probability(&"heads"), Probability::new(1, 2));
    assert_eq!(coin.probability(&"tails"), Probability::new(1, 2));
}

More examples can be found in the examples directory (cargo run --example <example-name>).

Documentation

The complete documentation is hosted at docs.rs/stochasta.

Changelog

For Changelog / News / History / Releases, see CHANGELOG.md.

Bugs / Issues / Feature Requests

If there is anything at your disfavor or something behaves weird, please submit an issue or open a pull request.

Dependencies

~1.6–2.3MB
~51K SLoC