
This crate implements the [Distribution](https://rust-random.github.io/rand/rand/distributions/trait.Distribution.html) trait for the discrete normal distribution.
## Usage
```rust
use dnorm::DiscreteNormal;
use rand::distributions::Distribution;
let d = DiscreteNormal::new(0.0, 3.0);
let v = d.sample(&mut rand::thread_rng());
println!("{} is from a discrete N(0, 9) distribution", v)
```
## Acknowledgements
Karney, C. (2016). Sampling Exactly from the Normal Distribution. ACM Transactions on Mathematical Software, 42(1), 1–14.