stochasta 0.2.1

A simple stochastic analysis library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# STOCHASTA

This is `stochasta`. A (hopefully) simple stochastic analysis library.

## Example

```rust
use stochasta::cards::CardDeck;
use stochasta::Probability;

let coin = CardDeck::from(vec!["head", "tails"]);

assert_eq!(coin.size(), 2);
assert_eq!(coin.probability(&"head"), Probability::new(1, 2));
assert_eq!(coin.probability(&"tails"), Probability::new(1, 2));
```